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

Unified Diff: tests/language/static_field3_test.dart

Issue 11049038: Change compile-time errors into dynamic errors in instance creation expression (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 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/language/static_field3_negative_test.dart ('k') | tests/language/static_field3a_negative_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
-}
« no previous file with comments | « tests/language/static_field3_negative_test.dart ('k') | tests/language/static_field3a_negative_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698