Index: tests/language/src/Field3aNegativeTest.dart |
diff --git a/tests/language/src/FieldNegativeTest.dart b/tests/language/src/Field3aNegativeTest.dart |
similarity index 51% |
rename from tests/language/src/FieldNegativeTest.dart |
rename to tests/language/src/Field3aNegativeTest.dart |
index 8d7b15bb288ebc38b271bff5f9705676fca3e0a1..d0706f63142a6fef574d46652185cae1bf418932 100644 |
--- a/tests/language/src/FieldNegativeTest.dart |
+++ b/tests/language/src/Field3aNegativeTest.dart |
@@ -1,23 +1,13 @@ |
// Copyright (c) 2011, 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. |
-// Dart test to catch that we do not override fields. |
+// Dart test to catch error reporting bugs in class fields declarations. |
-class A { |
- var a_; |
- var b_; |
-} |
- |
-class B extends A { |
- var b_; |
- var c_; |
-} |
- |
-class FieldNegativeTest { |
- static testMain() { |
- } |
+class C { |
+ final a; // illegal field declaration - must be initialized |
} |
main() { |
- FieldNegativeTest.testMain(); |
+ var val = new C(); |
+ Expect.equals(val.a, 0); |
} |