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

Unified Diff: pkg/analyzer/test/src/summary/summary_common.dart

Issue 2668493002: Issue 28547. Fix for summarizing code with invalid type parameter reference. (Closed)
Patch Set: Created 3 years, 11 months 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: pkg/analyzer/test/src/summary/summary_common.dart
diff --git a/pkg/analyzer/test/src/summary/summary_common.dart b/pkg/analyzer/test/src/summary/summary_common.dart
index 3dd4f0c8ce2fa8e9cf61745ce5427eef17698f15..45575aa40152a1ea6160c951a3c36e1e77569d30 100644
--- a/pkg/analyzer/test/src/summary/summary_common.dart
+++ b/pkg/analyzer/test/src/summary/summary_common.dart
@@ -9888,6 +9888,17 @@ void f<T, U>(bool b) {
checkDynamicTypeRef(serializeTypeText('dynamic'));
}
+ test_type_invalid_typeParameter_asPrefix() {
+ UnlinkedClass c = serializeClassText('''
+class C<T> {
+ m(T.K p) {}
+}
+''');
+ UnlinkedExecutable m = c.executables[0];
+ expect(m.name, 'm');
+ checkTypeRef(m.parameters[0].type, null, null, 'dynamic');
+ }
+
test_type_param_codeRange() {
if (!includeInformative) return;
UnlinkedClass cls =

Powered by Google App Engine
This is Rietveld 408576698