Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(360)

Unified Diff: tests/compiler/dart2js/generic_method_type_usage_test.dart

Issue 2535373003: Resolve type arguments to generic methods. (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
});
}

Powered by Google App Engine
This is Rietveld 408576698