OLD | NEW |
(Empty) | |
| 1 dart_library.library('corelib/set_remove_test', null, /* Imports */[ |
| 2 'dart_sdk', |
| 3 'expect' |
| 4 ], function load__set_remove_test(exports, dart_sdk, expect) { |
| 5 'use strict'; |
| 6 const core = dart_sdk.core; |
| 7 const _interceptors = dart_sdk._interceptors; |
| 8 const dart = dart_sdk.dart; |
| 9 const dartx = dart_sdk.dartx; |
| 10 const expect$ = expect.expect; |
| 11 const set_remove_test = Object.create(null); |
| 12 let SetOfB = () => (SetOfB = dart.constFn(core.Set$(set_remove_test.B)))(); |
| 13 let JSArrayOfB = () => (JSArrayOfB = dart.constFn(_interceptors.JSArray$(set_r
emove_test.B)))(); |
| 14 let JSArrayOfSetOfB = () => (JSArrayOfSetOfB = dart.constFn(_interceptors.JSAr
ray$(SetOfB())))(); |
| 15 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT
ype(dart.dynamic, [])))(); |
| 16 set_remove_test.A = class A extends core.Object { |
| 17 new() { |
| 18 } |
| 19 }; |
| 20 dart.setSignature(set_remove_test.A, { |
| 21 constructors: () => ({new: dart.definiteFunctionType(set_remove_test.A, [])}
) |
| 22 }); |
| 23 set_remove_test.B = class B extends set_remove_test.A { |
| 24 new() { |
| 25 super.new(); |
| 26 } |
| 27 }; |
| 28 dart.setSignature(set_remove_test.B, { |
| 29 constructors: () => ({new: dart.definiteFunctionType(set_remove_test.B, [])}
) |
| 30 }); |
| 31 let const$; |
| 32 let const$0; |
| 33 set_remove_test.main = function() { |
| 34 let set1 = SetOfB().new(); |
| 35 set1.add(const$ || (const$ = dart.const(new set_remove_test.B()))); |
| 36 let set2 = SetOfB().new(); |
| 37 let list = JSArrayOfB().of([const$0 || (const$0 = dart.const(new set_remove_
test.B()))]); |
| 38 let set3 = list[dartx.toSet](); |
| 39 let sets = JSArrayOfSetOfB().of([set1, set2, set3]); |
| 40 for (let setToTest of sets) { |
| 41 expect$.Expect.isFalse(setToTest.remove(new set_remove_test.A())); |
| 42 } |
| 43 }; |
| 44 dart.fn(set_remove_test.main, VoidTodynamic()); |
| 45 // Exports: |
| 46 exports.set_remove_test = set_remove_test; |
| 47 }); |
OLD | NEW |