Index: tests/language/constructor_call_as_function_test.dart |
diff --git a/tests/language/constructor_negative_test.dart b/tests/language/constructor_call_as_function_test.dart |
similarity index 75% |
rename from tests/language/constructor_negative_test.dart |
rename to tests/language/constructor_call_as_function_test.dart |
index 864f7a7cfbed30ea1eeb9d5f3a2ee14c76d78ed1..8bcca7494d96a730153838f541c332cc834d4fdc 100644 |
--- a/tests/language/constructor_negative_test.dart |
+++ b/tests/language/constructor_call_as_function_test.dart |
@@ -12,12 +12,12 @@ class Point { |
} |
-class ConstructorNegativeTest { |
+class ConstructorTest { |
static testMain() { |
- Point p = Point(1, 2); // should be const or new before Point(1,2). |
+ Point p = Point(1, 2); /// 01: static type warning, runtime error |
ahe
2013/08/26 14:06:33
Inline this in main?
Søren Gjesse
2013/10/30 11:40:30
Done.
|
} |
} |
main() { |
- ConstructorNegativeTest.testMain(); |
+ ConstructorTest.testMain(); /// 01: continued |
ahe
2013/08/26 14:06:33
Don't need "continued" here.
Søren Gjesse
2013/10/30 11:40:30
Line removed with the call inlined in main.
|
} |