| Index: tests/language/new_expression_type_args_test.dart
|
| diff --git a/tests/language/new_expression_type_args_test.dart b/tests/language/new_expression_type_args_test.dart
|
| index 3f298f420ce07c89968bdc12704a1580d250fafc..b8fa68a19681b49070863a50788e6273a4b5be55 100644
|
| --- a/tests/language/new_expression_type_args_test.dart
|
| +++ b/tests/language/new_expression_type_args_test.dart
|
| @@ -5,18 +5,18 @@
|
| // Tests showing errors using type-arguments in new expressions:
|
| class A<T> {
|
| // Can't instantiate type parameter (within static or instance method).
|
| - m1() => new T(); /// 00: static type warning, runtime error
|
| - static m2() => new T(); /// 01: static type warning, runtime error
|
| + m1() => new T(); //# 00: static type warning, runtime error
|
| + static m2() => new T(); //# 01: static type warning, runtime error
|
|
|
| // OK when used within instance method, but not in static method.
|
| m3() => new A<T>();
|
| - static m4() => new A<T>(); /// 02: static type warning
|
| + static m4() => new A<T>(); //# 02: static type warning
|
| }
|
|
|
| main() {
|
| A a = new A();
|
| - a.m1(); /// 00: continued
|
| - A.m2(); /// 01: continued
|
| + a.m1(); //# 00: continued
|
| + A.m2(); //# 01: continued
|
| a.m3();
|
| - A.m4(); /// 02: continued
|
| + A.m4(); //# 02: continued
|
| }
|
|
|