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

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

Issue 2977983002: Resynthesize InterfaceType, class type parameters and supertype. (Closed)
Patch Set: Created 3 years, 5 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/resynthesize_common.dart
diff --git a/pkg/analyzer/test/src/summary/resynthesize_common.dart b/pkg/analyzer/test/src/summary/resynthesize_common.dart
index 974a0d99244f2e649246f734ac21fd670aff3e4c..55cbe3469de0febef14b5d51f3adb45f06096901 100644
--- a/pkg/analyzer/test/src/summary/resynthesize_common.dart
+++ b/pkg/analyzer/test/src/summary/resynthesize_common.dart
@@ -2747,22 +2747,29 @@ class C {
}
test_class_supertype() async {
- var library = await checkLibrary('class C extends D {} class D {}');
- if (isStrongMode) {
- checkElementText(library, r'''
+ var library = await checkLibrary('''
+class C extends D {}
+class D {}
+''');
+ checkElementText(library, r'''
class C extends D {
}
class D {
}
''');
- } else {
- checkElementText(library, r'''
-class C extends D {
+ }
+
+ test_class_supertype_typeArguments() async {
+ var library = await checkLibrary('''
+class C extends D<int, double> {}
+class D<T1, T2> {}
+''');
+ checkElementText(library, r'''
+class C extends D<int, double> {
}
-class D {
+class D<T1, T2> {
}
''');
- }
}
test_class_supertype_unresolved() async {
« no previous file with comments | « pkg/analyzer/lib/src/dart/element/element.dart ('k') | pkg/analyzer/test/src/summary/resynthesize_kernel_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698