Index: tests/language_2/bad_constructor_test.dart |
diff --git a/tests/language/bad_constructor_test.dart b/tests/language_2/bad_constructor_test.dart |
similarity index 86% |
rename from tests/language/bad_constructor_test.dart |
rename to tests/language_2/bad_constructor_test.dart |
index 28a61fe196a57e674a6498936d18f5081e97c7c6..933364dee4a572593d40b15debe10b13a0dd2d2d 100644 |
--- a/tests/language/bad_constructor_test.dart |
+++ b/tests/language_2/bad_constructor_test.dart |
@@ -16,8 +16,8 @@ class A { |
set q(var value) { |
m = 0; |
} // No name conflict with q=. |
- A.q(); // //# 05: ok |
- A(); // //# 05: ok |
+ // The error occurs because main calls new A() instead of new A.q(). |
+ A.q(); // //# 05: compile-time error |
A.foo() : m = 0; // //# 06: compile-time error |
int foo(int a, int b) => a + b * m; |