Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(192)

Unified Diff: test/codegen/expect/functions.js

Issue 1143253003: Check whether type parameters are loaded before emitting (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Handle typedef case as well Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/src/codegen/js_codegen.dart ('k') | test/codegen/expect/functions.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « lib/src/codegen/js_codegen.dart ('k') | test/codegen/expect/functions.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698