| Index: tests/language_2/type_variable_scope_test.dart
|
| diff --git a/tests/language/type_variable_scope_test.dart b/tests/language_2/type_variable_scope_test.dart
|
| similarity index 74%
|
| rename from tests/language/type_variable_scope_test.dart
|
| rename to tests/language_2/type_variable_scope_test.dart
|
| index efc55e38582deae7104b781f5dd43294b645272e..b219b2903c445cdad8920a5bd3b089b378a7dcf4 100644
|
| --- a/tests/language/type_variable_scope_test.dart
|
| +++ b/tests/language_2/type_variable_scope_test.dart
|
| @@ -8,11 +8,11 @@ class Foo<T> {
|
| Foo() {}
|
|
|
| static
|
| - Foo<T> //# 00: static type warning
|
| + Foo<T> //# 00: compile-time error
|
| m(
|
| - Foo<T> //# 01: static type warning
|
| + Foo<T> //# 01: compile-time error
|
| f) {
|
| - Foo<T> x = new Foo<String>(); //# 02: static type warning
|
| + Foo<T> x = new Foo<String>(); //# 02: compile-time error
|
| return new Foo<String>();
|
| }
|
|
|
| @@ -22,16 +22,16 @@ class Foo<T> {
|
| }
|
|
|
| // T is not in scope for a static field.
|
| - static Foo<T> f1; //# 03: static type warning
|
| + static Foo<T> f1; //# 03: compile-time error
|
|
|
| static
|
| - Foo<T> //# 04: static type warning
|
| + Foo<T> //# 04: compile-time error
|
| get f {
|
| return new Foo<String>();
|
| }
|
|
|
| static void set f(
|
| - Foo<T> //# 05: static type warning
|
| + Foo<T> //# 05: compile-time error
|
| value) {}
|
| }
|
|
|
|
|