OLD | NEW |
(Empty) | |
| 1 dart_library.library('language/constructor_name_clash_test', null, /* Imports */
[ |
| 2 'dart_sdk', |
| 3 'expect' |
| 4 ], function load__constructor_name_clash_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 constructor_name_clash_test = Object.create(null); |
| 11 const constructor_name_clash_lib = Object.create(null); |
| 12 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT
ype(dart.dynamic, [])))(); |
| 13 constructor_name_clash_lib.A = class A extends core.Object { |
| 14 new() { |
| 15 constructor_name_clash_lib.global = dart.notNull(constructor_name_clash_li
b.global) + 10; |
| 16 try { |
| 17 } catch (e) { |
| 18 } |
| 19 |
| 20 } |
| 21 }; |
| 22 dart.setSignature(constructor_name_clash_lib.A, { |
| 23 constructors: () => ({new: dart.definiteFunctionType(constructor_name_clash_
lib.A, [])}) |
| 24 }); |
| 25 constructor_name_clash_test.A = class A extends constructor_name_clash_lib.A { |
| 26 new() { |
| 27 super.new(); |
| 28 constructor_name_clash_lib.global = dart.notNull(constructor_name_clash_li
b.global) + 100; |
| 29 try { |
| 30 } catch (e) { |
| 31 } |
| 32 |
| 33 } |
| 34 }; |
| 35 dart.setSignature(constructor_name_clash_test.A, { |
| 36 constructors: () => ({new: dart.definiteFunctionType(constructor_name_clash_
test.A, [])}) |
| 37 }); |
| 38 constructor_name_clash_test.main = function() { |
| 39 new constructor_name_clash_test.A(); |
| 40 expect$.Expect.equals(110, constructor_name_clash_lib.global); |
| 41 }; |
| 42 dart.fn(constructor_name_clash_test.main, VoidTodynamic()); |
| 43 constructor_name_clash_lib.global = 0; |
| 44 // Exports: |
| 45 exports.constructor_name_clash_test = constructor_name_clash_test; |
| 46 exports.constructor_name_clash_lib = constructor_name_clash_lib; |
| 47 }); |
OLD | NEW |