Index: tests/language/static_field3_test.dart |
=================================================================== |
--- tests/language/static_field3_test.dart (revision 13024) |
+++ tests/language/static_field3_test.dart (working copy) |
@@ -6,16 +6,14 @@ |
class Foo { |
Foo() {} |
var x; |
+ void m() {} |
} |
-class StaticField3NegativeTest { |
- static testMain() { |
- if (false) { |
- var x = Foo.x; |
- } |
+main() { |
+ if (false) { |
+ var x = Foo.x; /// 01: static type warning |
+ var m = Foo.m; /// 02: static type warning |
+ Foo.m = 1; /// 03: static type warning |
+ Foo.x = 1; /// 04: static type warning |
} |
} |
- |
-main() { |
- StaticField3NegativeTest.testMain(); |
-} |