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

Unified Diff: tests/language/check_member_static_test.dart

Issue 140803002: Perform override and inheritance checks. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 11 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
Index: tests/language/check_member_static_test.dart
diff --git a/tests/language/inferrer_synthesized_super_constructor_test.dart b/tests/language/check_member_static_test.dart
similarity index 62%
copy from tests/language/inferrer_synthesized_super_constructor_test.dart
copy to tests/language/check_member_static_test.dart
index ccffde991de77af4847f81b79f71a31f0803f3e1..d18ed68d74d944df61dc70964494463454aa5c14 100644
--- a/tests/language/inferrer_synthesized_super_constructor_test.dart
+++ b/tests/language/check_member_static_test.dart
@@ -2,20 +2,20 @@
// 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.
-import 'compiler_annotations.dart';
-
class A {
- @DontInline()
- A([a]) {
- () => 42;
- if (a != null) throw 'Test failed';
- }
+ static var a;
+ var b;
}
class B extends A {
- B();
+
}
-main() {
- new B();
+class C extends B {
+ var a; /// 01: static type warning
+ static var b; /// 02: compile-time error
}
+
+void main() {
+ new C();
+}

Powered by Google App Engine
This is Rietveld 408576698