Index: test/codegen/expect/functions.js |
diff --git a/test/codegen/expect/functions.js b/test/codegen/expect/functions.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..d9a9b4e06edc82da7948bcadbef72e43f8e8bc5f |
--- /dev/null |
+++ b/test/codegen/expect/functions.js |
@@ -0,0 +1,19 @@ |
+var functions = dart.defineLibrary(functions, {}); |
+var core = dart.import(core); |
+(function(exports, core) { |
+ 'use strict'; |
+ function bootstrap() { |
+ return dart.setType([new Foo()], core.List$(Foo)); |
+ } |
+ dart.fn(bootstrap, () => dart.functionType(core.List$(Foo), [])); |
+ class Foo extends core.Object {} |
+ dart.setSignature(Foo, {}); |
+ function main() { |
+ core.print(bootstrap()[core.$get](0)); |
+ } |
+ dart.fn(main, dart.void, []); |
+ // Exports: |
+ exports.bootstrap = bootstrap; |
+ exports.Foo = Foo; |
+ exports.main = main; |
+})(functions, core); |