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

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

Issue 1090313002: fixes #52, fields shadowing getters/setters or other fields (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
« no previous file with comments | « test/codegen/expect/DeltaBlue.js ('k') | test/codegen/expect/constructors.js » ('j') | 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 97bdf1eefb46de54e114d384f6a4fbbb9d2497aa..5edb9527fdb7906d118fd0535cebcefbf6a801be 100644
--- a/test/codegen/expect/cascade.js
+++ b/test/codegen/expect/cascade.js
@@ -1,9 +1,16 @@
var cascade;
(function(exports) {
'use strict';
+ let x = Symbol('x');
class A extends core.Object {
A() {
- this.x = null;
+ this[x] = null;
+ }
+ get x() {
+ return this[x];
+ }
+ set x(value) {
+ this[x] = value;
}
}
// Function test_closure_with_mutate: () → void
@@ -82,10 +89,14 @@ var cascade;
return a;
})());
}
+ let x$ = Symbol('x');
let Base$ = dart.generic(function(T) {
class Base extends core.Object {
Base() {
- this.x = new core.List$(T).from([]);
+ this[x$] = new core.List$(T).from([]);
+ }
+ get x() {
+ return this[x$];
}
}
return Base;
« no previous file with comments | « test/codegen/expect/DeltaBlue.js ('k') | test/codegen/expect/constructors.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698