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 = {})); |