| Index: tests/compiler/dart2js/cps_ir/expected/runtime_types_2.js
|
| diff --git a/tests/compiler/dart2js/cps_ir/expected/runtime_types_2.js b/tests/compiler/dart2js/cps_ir/expected/runtime_types_2.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..d22895ff5afc8ed36708e8c8fc183f2af8e6f9c4
|
| --- /dev/null
|
| +++ b/tests/compiler/dart2js/cps_ir/expected/runtime_types_2.js
|
| @@ -0,0 +1,23 @@
|
| +// Expectation for test:
|
| +// class C<T, U> {
|
| +// foo() => print(U);
|
| +// }
|
| +//
|
| +// class D extends C<int, double> {}
|
| +//
|
| +// main() {
|
| +// new D().foo();
|
| +// }
|
| +
|
| +function() {
|
| + var line = H.S(H.createRuntimeType(H.runtimeTypeToString(H.getRuntimeTypeArgument(V.D$(), "C", 1))));
|
| + if (typeof dartPrint == "function")
|
| + dartPrint(line);
|
| + else if (typeof console == "object" && typeof console.log != "undefined")
|
| + console.log(line);
|
| + else if (!(typeof window == "object")) {
|
| + if (!(typeof print == "function"))
|
| + throw "Unable to print message: " + String(line);
|
| + print(line);
|
| + }
|
| +}
|
|
|