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

Unified Diff: test/codegen/fieldtest.dart

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 | « test/codegen/expect/fieldtest.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/fieldtest.dart
diff --git a/test/codegen/fieldtest.dart b/test/codegen/fieldtest.dart
index a6d2b1fb5a1c67a65f2185222508876699a83e4c..b9cebe7ffb18c8772b6a7158669a21e8fcba8d90 100644
--- a/test/codegen/fieldtest.dart
+++ b/test/codegen/fieldtest.dart
@@ -35,6 +35,16 @@ void set z(value) {
y = value;
}
+// Supported: use field to implement a getter
+abstract class BaseWithGetter {
+ int get foo => 1;
+ int get bar;
+}
+class Derived extends BaseWithGetter {
+ int foo = 2;
+ int bar = 3;
+}
+
void main() {
var a = new A();
foo(a);
« no previous file with comments | « test/codegen/expect/fieldtest.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698