Index: tests/language/instantiate_type_variable_test.dart |
diff --git a/tests/language/instantiate_type_variable_negative_test.dart b/tests/language/instantiate_type_variable_test.dart |
similarity index 83% |
rename from tests/language/instantiate_type_variable_negative_test.dart |
rename to tests/language/instantiate_type_variable_test.dart |
index 1ced05856186dcd82b276fde260eec02dc85e378..a798984fedf117fbf7b26fa993bdadf61d64bb7a 100644 |
--- a/tests/language/instantiate_type_variable_negative_test.dart |
+++ b/tests/language/instantiate_type_variable_test.dart |
@@ -6,7 +6,9 @@ |
class Foo<T> { |
Foo() {} |
- T make() { return new T(); } |
+ T make() { |
+ return new T(); /// 01: compile-time error |
+ } |
} |
main() { |