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

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

Issue 1056183003: use VariableElement instead of VariableElementImpl in _isStateless (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 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
« lib/src/codegen/js_codegen.dart ('K') | « test/codegen/cascade.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/expect/cascade.js
diff --git a/test/codegen/expect/cascade.js b/test/codegen/expect/cascade.js
index f6322f8d921e4df4d15d3c817e9c1cf2b2319ca3..f6a96e31d68be5af29cd8f04a335e72e7c783b36 100644
--- a/test/codegen/expect/cascade.js
+++ b/test/codegen/expect/cascade.js
@@ -71,6 +71,23 @@ var cascade;
})(new core.List.from([])), b = 2;
core.print(a);
}
+ let Base$ = dart.generic(function(T) {
+ class Base extends core.Object {
+ Base() {
+ this.x = new core.List$(T).from([]);
+ }
+ }
+ return Base;
+ });
+ let Base = Base$();
+ class Foo extends Base$(core.int) {
+ test_final_field_generic(t) {
+ this.x.add(1);
+ this.x.add(2);
+ this.x.add(3);
+ this.x.add(4);
+ }
+ }
// Exports:
exports.A = A;
exports.test_closure_with_mutate = test_closure_with_mutate;
@@ -80,4 +97,7 @@ var cascade;
exports.test_VariableDeclaration_single = test_VariableDeclaration_single;
exports.test_VariableDeclaration_last = test_VariableDeclaration_last;
exports.test_VariableDeclaration_first = test_VariableDeclaration_first;
+ exports.Base$ = Base$;
+ exports.Base = Base;
+ exports.Foo = Foo;
})(cascade || (cascade = {}));
« lib/src/codegen/js_codegen.dart ('K') | « test/codegen/cascade.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698