| Index: tests/compiler/dart2js/generic_method_type_usage_test.dart
|
| diff --git a/tests/compiler/dart2js/generic_method_type_usage_test.dart b/tests/compiler/dart2js/generic_method_type_usage_test.dart
|
| index 9ec4fbe6cfbcb5f92fa6c29def5d5c6391beca4e..b1f0f222262d2cd91bf6b83bc3d3b9ca910f4040 100644
|
| --- a/tests/compiler/dart2js/generic_method_type_usage_test.dart
|
| +++ b/tests/compiler/dart2js/generic_method_type_usage_test.dart
|
| @@ -53,7 +53,6 @@ main() {
|
| print(aFunction<Set>(null));
|
| }
|
| ''',
|
| -
|
| 'cannot_new_method_type_variable.dart': '''
|
| class C {
|
| X aMethod<X>() => new X();
|
| @@ -63,7 +62,6 @@ main() {
|
| new C().aMethod<Set>();
|
| }
|
| ''',
|
| -
|
| 'cannot_new_function_type_variable.dart': '''
|
| X aFunction<X>() => new X(42);
|
|
|
| @@ -73,7 +71,6 @@ main() {
|
| ''',
|
| };
|
|
|
| -
|
| Future runTest(Uri main, {MessageKind warning, MessageKind info}) async {
|
| print("----\nentry-point: $main\n");
|
|
|
| @@ -101,15 +98,12 @@ Future runTest(Uri main, {MessageKind warning, MessageKind info}) async {
|
|
|
| void main() {
|
| asyncTest(() async {
|
| - await runTest(
|
| - Uri.parse('memory:type_variable_is_dynamic.dart'));
|
| + await runTest(Uri.parse('memory:type_variable_is_dynamic.dart'));
|
|
|
| - await runTest(
|
| - Uri.parse('memory:cannot_new_method_type_variable.dart'),
|
| + await runTest(Uri.parse('memory:cannot_new_method_type_variable.dart'),
|
| warning: MessageKind.CANNOT_INSTANTIATE_TYPE_VARIABLE);
|
|
|
| - await runTest(
|
| - Uri.parse('memory:cannot_new_function_type_variable.dart'),
|
| + await runTest(Uri.parse('memory:cannot_new_function_type_variable.dart'),
|
| warning: MessageKind.CANNOT_INSTANTIATE_TYPE_VARIABLE);
|
| });
|
| }
|
|
|