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

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

Issue 1133593004: fixes #131, use before define from variables to classes (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: 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 | « test/codegen/expect/constructors.js ('k') | test/codegen/expect/html_input.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/expect/fieldtest.js
diff --git a/test/codegen/expect/fieldtest.js b/test/codegen/expect/fieldtest.js
index 707e2d7f83dedfb26d91626be23773976e3280d2..7e9bea8c4d0e28a1baeb349c650d3f623bce1926 100644
--- a/test/codegen/expect/fieldtest.js
+++ b/test/codegen/expect/fieldtest.js
@@ -65,12 +65,24 @@ var core = dart.import(core);
}
}
dart.virtualField(Derived, 'foo');
+ let Generic$ = dart.generic(function(T) {
+ class Generic extends core.Object {
+ foo(t) {
+ dart.as(t, T);
+ return core.print(dart.notNull(Generic$().bar) + dart.notNull(t));
+ }
+ }
+ return Generic;
+ });
+ let Generic = Generic$();
+ Generic.bar = 'hello';
// Function main: () → void
function main() {
let a = new A();
foo(a);
bar(a);
core.print(baz(a));
+ core.print(new (Generic$(core.String))().foo(' world'));
}
// Exports:
exports.A = A;
@@ -82,5 +94,7 @@ var core = dart.import(core);
exports.compute = compute;
exports.BaseWithGetter = BaseWithGetter;
exports.Derived = Derived;
+ exports.Generic$ = Generic$;
+ exports.Generic = Generic;
exports.main = main;
})(fieldtest, core);
« no previous file with comments | « test/codegen/expect/constructors.js ('k') | test/codegen/expect/html_input.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698