Index: test/codegen/expect/language/patch_test.js |
diff --git a/test/codegen/expect/language/patch_test.js b/test/codegen/expect/language/patch_test.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..dcabb5a6118b0f8b0aa876e0764efd0e9b0db5a6 |
--- /dev/null |
+++ b/test/codegen/expect/language/patch_test.js |
@@ -0,0 +1,23 @@ |
+dart_library.library('language/patch_test', null, /* Imports */[ |
+ 'dart_sdk', |
+ 'expect' |
+], function load__patch_test(exports, dart_sdk, expect) { |
+ 'use strict'; |
+ const core = dart_sdk.core; |
+ const dart = dart_sdk.dart; |
+ const dartx = dart_sdk.dartx; |
+ const expect$ = expect.expect; |
+ const patch_test = Object.create(null); |
+ let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [])))(); |
+ patch_test.patch = function() { |
+ return 12; |
+ }; |
+ dart.fn(patch_test.patch, VoidTodynamic()); |
+ patch_test.main = function() { |
+ let x = patch_test.patch(); |
+ expect$.Expect.equals(12, x); |
+ }; |
+ dart.fn(patch_test.main, VoidTodynamic()); |
+ // Exports: |
+ exports.patch_test = patch_test; |
+}); |