| 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 69%
|
| rename from tests/language/constructor_negative_test.dart
|
| rename to tests/language/constructor_call_as_function_test.dart
|
| index 864f7a7cfbed30ea1eeb9d5f3a2ee14c76d78ed1..abfa52a1b03cb5276daa850a5f76f28c6c31dbe1 100644
|
| --- a/tests/language/constructor_negative_test.dart
|
| +++ b/tests/language/constructor_call_as_function_test.dart
|
| @@ -11,13 +11,6 @@ class Point {
|
| final int y;
|
| }
|
|
|
| -
|
| -class ConstructorNegativeTest {
|
| - static testMain() {
|
| - Point p = Point(1, 2); // should be const or new before Point(1,2).
|
| - }
|
| -}
|
| -
|
| main() {
|
| - ConstructorNegativeTest.testMain();
|
| + Point p = Point(1, 2); /// 01: static type warning, runtime error
|
| }
|
|
|