OLD | NEW |
(Empty) | |
| 1 dart_library.library('language/issue15720_test', null, /* Imports */[ |
| 2 'dart_sdk' |
| 3 ], function load__issue15720_test(exports, dart_sdk) { |
| 4 'use strict'; |
| 5 const core = dart_sdk.core; |
| 6 const _interceptors = dart_sdk._interceptors; |
| 7 const dart = dart_sdk.dart; |
| 8 const dartx = dart_sdk.dartx; |
| 9 const issue15720_test = Object.create(null); |
| 10 let SetOfB = () => (SetOfB = dart.constFn(core.Set$(issue15720_test.B)))(); |
| 11 let JSArrayOfB = () => (JSArrayOfB = dart.constFn(_interceptors.JSArray$(issue
15720_test.B)))(); |
| 12 let dynamicTodynamic = () => (dynamicTodynamic = dart.constFn(dart.definiteFun
ctionType(dart.dynamic, [dart.dynamic])))(); |
| 13 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT
ype(dart.dynamic, [])))(); |
| 14 issue15720_test.B = class B extends core.Object {}; |
| 15 issue15720_test.confuse = function(x) { |
| 16 if (dart.equals(new core.DateTime.now(), 42)) return issue15720_test.confuse
(x); |
| 17 return x; |
| 18 }; |
| 19 dart.fn(issue15720_test.confuse, dynamicTodynamic()); |
| 20 issue15720_test.main = function() { |
| 21 let set = SetOfB().from(JSArrayOfB().of([])); |
| 22 issue15720_test.confuse(499); |
| 23 issue15720_test.confuse(set); |
| 24 let t1 = new issue15720_test.B(); |
| 25 let t2 = new issue15720_test.B(); |
| 26 let t3 = new issue15720_test.B(); |
| 27 let t4 = new issue15720_test.B(); |
| 28 set.addAll(JSArrayOfB().of([t1, t2, t3, t4])); |
| 29 issue15720_test.confuse(7); |
| 30 set.addAll(JSArrayOfB().of([t1, t2, t3, t4])); |
| 31 }; |
| 32 dart.fn(issue15720_test.main, VoidTodynamic()); |
| 33 // Exports: |
| 34 exports.issue15720_test = issue15720_test; |
| 35 }); |
OLD | NEW |