OLD | NEW |
(Empty) | |
| 1 dart_library.library('language/for_in2_test', null, /* Imports */[ |
| 2 'dart_sdk', |
| 3 'expect' |
| 4 ], function load__for_in2_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 for_in2_test = Object.create(null); |
| 12 let SetOfint = () => (SetOfint = dart.constFn(core.Set$(core.int)))(); |
| 13 let JSArrayOfint = () => (JSArrayOfint = dart.constFn(_interceptors.JSArray$(c
ore.int)))(); |
| 14 let VoidTovoid = () => (VoidTovoid = dart.constFn(dart.definiteFunctionType(da
rt.void, [])))(); |
| 15 dart.defineLazy(for_in2_test, { |
| 16 get set() { |
| 17 return SetOfint().from(JSArrayOfint().of([1, 2])); |
| 18 }, |
| 19 set set(_) {} |
| 20 }); |
| 21 for_in2_test.x = null; |
| 22 for_in2_test.A = class A extends core.Object { |
| 23 new() { |
| 24 this.field = null; |
| 25 } |
| 26 test() { |
| 27 let count = 0; |
| 28 for (/* Unimplemented unknown name */field of for_in2_test.set) { |
| 29 count = dart.notNull(count) + dart.notNull(core.int._check(this.field)); |
| 30 } |
| 31 expect$.Expect.equals(3, count); |
| 32 count = 0; |
| 33 for (/* Unimplemented unknown name */x of for_in2_test.set) { |
| 34 count = dart.notNull(count) + dart.notNull(core.int._check(for_in2_test.
x)); |
| 35 } |
| 36 expect$.Expect.equals(3, count); |
| 37 } |
| 38 }; |
| 39 dart.setSignature(for_in2_test.A, { |
| 40 methods: () => ({test: dart.definiteFunctionType(dart.dynamic, [])}) |
| 41 }); |
| 42 for_in2_test.main = function() { |
| 43 new for_in2_test.A().test(); |
| 44 }; |
| 45 dart.fn(for_in2_test.main, VoidTovoid()); |
| 46 // Exports: |
| 47 exports.for_in2_test = for_in2_test; |
| 48 }); |
OLD | NEW |