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

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

Issue 1926283002: implement generic method runtime behavior, fixes #301 (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 8 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 | « test/codegen/expect/closure.js ('k') | test/codegen/expect/unittest.js » ('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
index c73cb776922ed2ead1ac6f7f73f06be357fa1fa3..9934e7f37ecd59771d72c70ec504ccb8081ceb02 100644
--- a/test/codegen/expect/functions.js
+++ b/test/codegen/expect/functions.js
@@ -9,7 +9,7 @@ dart_library.library('functions', null, /* Imports */[
functions.bootstrap = function() {
return dart.list([new functions.Foo()], functions.Foo);
};
- dart.fn(functions.bootstrap, () => dart.definiteFunctionType(core.List$(functions.Foo), []));
+ dart.lazyFn(functions.bootstrap, () => [core.List$(functions.Foo), []]);
functions.A2B$ = dart.generic((A, B) => {
const A2B = dart.typedef('A2B', () => dart.functionType(B, [A]));
return A2B;
@@ -18,7 +18,7 @@ dart_library.library('functions', null, /* Imports */[
functions.id = function(f) {
return f;
};
- dart.fn(functions.id, () => dart.definiteFunctionType(functions.A2B$(functions.Foo, functions.Foo), [functions.A2B$(functions.Foo, functions.Foo)]));
+ dart.lazyFn(functions.id, () => [functions.A2B$(functions.Foo, functions.Foo), [functions.A2B$(functions.Foo, functions.Foo)]]);
functions.Foo = class Foo extends core.Object {};
functions.main = function() {
core.print(functions.bootstrap()[dartx.get](0));
« no previous file with comments | « test/codegen/expect/closure.js ('k') | test/codegen/expect/unittest.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698