OLD | NEW |
(Empty) | |
| 1 dart_library.library('language/regress_23650_test', null, /* Imports */[ |
| 2 'dart_sdk', |
| 3 'expect' |
| 4 ], function load__regress_23650_test(exports, dart_sdk, expect) { |
| 5 'use strict'; |
| 6 const core = dart_sdk.core; |
| 7 const dart = dart_sdk.dart; |
| 8 const dartx = dart_sdk.dartx; |
| 9 const expect$ = expect.expect; |
| 10 const regress_23650_test = Object.create(null); |
| 11 let C = () => (C = dart.constFn(regress_23650_test.C$()))(); |
| 12 let COfint = () => (COfint = dart.constFn(regress_23650_test.C$(core.int)))(); |
| 13 let COfString = () => (COfString = dart.constFn(regress_23650_test.C$(core.Str
ing)))(); |
| 14 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT
ype(dart.dynamic, [])))(); |
| 15 regress_23650_test.C$ = dart.generic(T => { |
| 16 let COfT = () => (COfT = dart.constFn(regress_23650_test.C$(T)))(); |
| 17 class C extends core.Object { |
| 18 foo() { |
| 19 } |
| 20 static new() { |
| 21 try { |
| 22 return new (COfT()).foo(); |
| 23 } finally { |
| 24 } |
| 25 } |
| 26 } |
| 27 dart.addTypeTests(C); |
| 28 dart.defineNamedConstructor(C, 'foo'); |
| 29 dart.setSignature(C, { |
| 30 constructors: () => ({ |
| 31 foo: dart.definiteFunctionType(regress_23650_test.C$(T), []), |
| 32 new: dart.definiteFunctionType(regress_23650_test.C$(T), []) |
| 33 }) |
| 34 }); |
| 35 return C; |
| 36 }); |
| 37 regress_23650_test.C = C(); |
| 38 regress_23650_test.main = function() { |
| 39 let c = COfint().new(); |
| 40 expect$.Expect.isTrue(COfint().is(c)); |
| 41 expect$.Expect.isFalse(COfString().is(c)); |
| 42 }; |
| 43 dart.fn(regress_23650_test.main, VoidTodynamic()); |
| 44 // Exports: |
| 45 exports.regress_23650_test = regress_23650_test; |
| 46 }); |
OLD | NEW |