OLD | NEW |
(Empty) | |
| 1 dart_library.library('language/local_function_non_equal_test', null, /* Imports
*/[ |
| 2 'dart_sdk', |
| 3 'expect' |
| 4 ], function load__local_function_non_equal_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 local_function_non_equal_test = Object.create(null); |
| 11 let VoidToint = () => (VoidToint = dart.constFn(dart.definiteFunctionType(core
.int, [])))(); |
| 12 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT
ype(dart.dynamic, [])))(); |
| 13 local_function_non_equal_test.foo = function() { |
| 14 return dart.fn(() => 42, VoidToint()); |
| 15 }; |
| 16 dart.fn(local_function_non_equal_test.foo, VoidTodynamic()); |
| 17 local_function_non_equal_test.bar = function() { |
| 18 let c = dart.fn(() => 54, VoidToint()); |
| 19 return c; |
| 20 }; |
| 21 dart.fn(local_function_non_equal_test.bar, VoidTodynamic()); |
| 22 local_function_non_equal_test.baz = function() { |
| 23 function c() { |
| 24 return 68; |
| 25 } |
| 26 dart.fn(c, VoidTodynamic()); |
| 27 return c; |
| 28 }; |
| 29 dart.fn(local_function_non_equal_test.baz, VoidTodynamic()); |
| 30 local_function_non_equal_test.main = function() { |
| 31 let first = local_function_non_equal_test.foo(); |
| 32 let second = local_function_non_equal_test.foo(); |
| 33 expect$.Expect.isFalse(core.identical(first, second)); |
| 34 expect$.Expect.notEquals(first, second); |
| 35 first = local_function_non_equal_test.bar(); |
| 36 second = local_function_non_equal_test.bar(); |
| 37 expect$.Expect.isFalse(core.identical(first, second)); |
| 38 expect$.Expect.notEquals(first, second); |
| 39 first = local_function_non_equal_test.baz(); |
| 40 second = local_function_non_equal_test.baz(); |
| 41 expect$.Expect.isFalse(core.identical(first, second)); |
| 42 expect$.Expect.notEquals(first, second); |
| 43 }; |
| 44 dart.fn(local_function_non_equal_test.main, VoidTodynamic()); |
| 45 // Exports: |
| 46 exports.local_function_non_equal_test = local_function_non_equal_test; |
| 47 }); |
OLD | NEW |