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