| Index: tests/compiler/dart2js/cps_ir/expected/runtime_types_3.js
|
| diff --git a/tests/compiler/dart2js/cps_ir/expected/runtime_types_3.js b/tests/compiler/dart2js/cps_ir/expected/runtime_types_3.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..435bb62d8137aa60ab162fa76be5677c5e3d65e7
|
| --- /dev/null
|
| +++ b/tests/compiler/dart2js/cps_ir/expected/runtime_types_3.js
|
| @@ -0,0 +1,23 @@
|
| +// Expectation for test:
|
| +// class C<T> {
|
| +// foo() => new D<C<T>>();
|
| +// }
|
| +// class D<T> {
|
| +// bar() => T;
|
| +// }
|
| +// main() {
|
| +// print(new C<int>().foo().bar());
|
| +// }
|
| +
|
| +function() {
|
| + var line = H.S(H.createRuntimeType(H.runtimeTypeToString(H.getTypeArgumentByIndex(V.D$([V.C, H.getTypeArgumentByIndex(V.C$(P.$int), 0)]), 0))));
|
| + 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);
|
| + }
|
| +}
|
|
|