| 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('');
|
| }
|
|
|