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

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

Issue 1099743002: fix fields that override getters/setters (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: merged 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 | « lib/src/codegen/js_field_storage.dart ('k') | test/codegen/fieldtest.dart » ('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 9354cf6742d7c7fd365d7343aeb536e991928128..2624558279b8d75b487139d1bfe10d0ae44b21c2 100644
--- a/test/codegen/expect/fieldtest.js
+++ b/test/codegen/expect/fieldtest.js
@@ -52,6 +52,19 @@ var fieldtest;
exports.y = dart.as(value, core.int);
}
});
+ class BaseWithGetter extends core.Object {
+ get foo() {
+ return 1;
+ }
+ }
+ class Derived extends BaseWithGetter {
+ Derived() {
+ this.foo = 2;
+ this.bar = 3;
+ super.BaseWithGetter();
+ }
+ }
+ dart.virtualField(Derived, 'foo');
// Function main: () → void
function main() {
let a = new A();
@@ -67,5 +80,7 @@ var fieldtest;
exports.bar = bar;
exports.baz = baz;
exports.compute = compute;
+ exports.BaseWithGetter = BaseWithGetter;
+ exports.Derived = Derived;
exports.main = main;
})(fieldtest || (fieldtest = {}));
« no previous file with comments | « lib/src/codegen/js_field_storage.dart ('k') | test/codegen/fieldtest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698