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 bbaae7824d22d1809b4e3225f97603ec9fd6a04c..9354cbad1fc6432134c137b6c26979f614952dd8 100644 |
--- a/tests/compiler/dart2js/generic_method_type_usage_test.dart |
+++ b/tests/compiler/dart2js/generic_method_type_usage_test.dart |
@@ -69,13 +69,18 @@ main() { |
aFunction<Set>(); |
} |
''', |
- |
'dynamic_as_type_argument.dart': ''' |
main() { |
method<dynamic>(); |
} |
method<T>() {} |
''', |
+ 'malformed_type_argument.dart': ''' |
+main() { |
+ method<Unresolved>(); |
+} |
+method<T>() {} |
+''', |
}; |
Future runTest(Uri main, {MessageKind warning, MessageKind info}) async { |
@@ -114,5 +119,8 @@ void main() { |
warning: MessageKind.CANNOT_INSTANTIATE_TYPE_VARIABLE); |
await runTest(Uri.parse('memory:dynamic_as_type_argument.dart')); |
+ |
+ await runTest(Uri.parse('memory:malformed_type_argument.dart'), |
+ warning: MessageKind.CANNOT_RESOLVE_TYPE); |
}); |
} |