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

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

Issue 2244043002: Fix instantiateToBounds behavior in summary resynthesizer to match that of StrongTypeSystemImpl.ins… (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 4 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
« no previous file with comments | « pkg/analyzer/test/src/summary/resynthesize_strong_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/src/summary/resynthesize_test.dart
diff --git a/pkg/analyzer/test/src/summary/resynthesize_test.dart b/pkg/analyzer/test/src/summary/resynthesize_test.dart
index 1e11951cf9dce19a488a01c3c05cec3cf1f06163..f08366b8a2d85471ffde4bdc3227d477b6e6d4ab 100644
--- a/pkg/analyzer/test/src/summary/resynthesize_test.dart
+++ b/pkg/analyzer/test/src/summary/resynthesize_test.dart
@@ -3606,6 +3606,34 @@ void f() {
''');
}
+ test_instantiateToBounds_boundRefersToEarlierTypeArgument() {
+ checkLibrary('''
+class C<S extends num, T extends C<S, T>> {}
+C c;
+''');
+ }
+
+ test_instantiateToBounds_boundRefersToItself() {
+ checkLibrary('''
+class C<T extends C<T>> {}
+C c;
+''');
+ }
+
+ test_instantiateToBounds_boundRefersToLaterTypeArgument() {
+ checkLibrary('''
+class C<T extends C<T, U>, U extends num> {}
+C c;
+''');
+ }
+
+ test_instantiateToBounds_simple() {
+ checkLibrary('''
+class C<T extends num> {}
+C c;
+''');
+ }
+
test_library() {
checkLibrary('');
}
« no previous file with comments | « pkg/analyzer/test/src/summary/resynthesize_strong_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698