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

Unified Diff: tests/language/src/GettersSettersTest.dart

Issue 10115005: Static members are not visible in subclasses (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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 | « tests/co19/co19-runtime.status ('k') | tests/language/src/PrivateMemberTest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/src/GettersSettersTest.dart
===================================================================
--- tests/language/src/GettersSettersTest.dart (revision 6697)
+++ tests/language/src/GettersSettersTest.dart (working copy)
@@ -1,4 +1,4 @@
-// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
@@ -59,8 +59,6 @@
}
class A {
- // TODO(fabiofmv): consider removing once http://b/4254120 is fixed.
- A() { }
int x_;
static int foo;
@@ -97,9 +95,7 @@
}
}
-class B extends A {
- B() : super() {}
-}
+class B extends A { }
class C extends A {
int y_;
@@ -118,8 +114,6 @@
}
class D extends A {
- D() : super() {}
-
var x2_;
set x(new_x) {
@@ -131,30 +125,16 @@
Expect.equals(87, x2_);
x = 42;
Expect.equals(42, x2_);
-
- foo = 0;
- Expect.equals(0, bar);
- bar = 1;
- Expect.equals(1, foo);
- var tmp = foo;
- foo += 3;
- Expect.equals(4, bar);
- bar += 5;
- Expect.equals(9, foo);
}
}
class OverrideField extends A {
- OverrideField() : super() {}
-
int get x_() {
return 27;
}
}
class ReferenceField extends A {
- ReferenceField() : super() {}
-
setIt(a) {
super.x_ = a;
}
« no previous file with comments | « tests/co19/co19-runtime.status ('k') | tests/language/src/PrivateMemberTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698