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

Unified Diff: test/codegen/expect/methods.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/fieldtest.js ('k') | test/codegen/expect/names.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/expect/methods.js
diff --git a/test/codegen/expect/methods.js b/test/codegen/expect/methods.js
index 708b0ce457c45f68eb0864161f508121862d41f6..d8d381a37b2c6a57208f2cd0fa79cff77a081897 100644
--- a/test/codegen/expect/methods.js
+++ b/test/codegen/expect/methods.js
@@ -46,9 +46,13 @@ var methods;
return core.print(`hello from ${x}`);
}
}
+ let bar = Symbol('bar');
class Foo extends core.Object {
Foo() {
- this.bar = new Bar();
+ this[bar] = new Bar();
+ }
+ get bar() {
+ return this[bar];
}
}
// Function test: () → dynamic
« no previous file with comments | « test/codegen/expect/fieldtest.js ('k') | test/codegen/expect/names.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698