| Index: pkg/analyzer/test/src/task/strong/inferred_type_test.dart
|
| diff --git a/pkg/analyzer/test/src/task/strong/inferred_type_test.dart b/pkg/analyzer/test/src/task/strong/inferred_type_test.dart
|
| index 2465bfd65aae2d82459ec5b4cd27eb0a3afce15a..1807bde5413838cc1418fa8139e116e9d8777187 100644
|
| --- a/pkg/analyzer/test/src/task/strong/inferred_type_test.dart
|
| +++ b/pkg/analyzer/test/src/task/strong/inferred_type_test.dart
|
| @@ -2839,6 +2839,22 @@ A v = null;
|
| expect(unit.topLevelVariables[0].type.toString(), 'A<int>');
|
| }
|
|
|
| + void test_instantiateToBounds_invokeConstructor_noBound() {
|
| + var unit = checkFile('''
|
| +class C<T> {}
|
| +var x = new C();
|
| +''');
|
| + expect(unit.topLevelVariables[0].type.toString(), 'C<dynamic>');
|
| + }
|
| +
|
| + void test_instantiateToBounds_invokeConstructor_typeArgsExact() {
|
| + var unit = checkFile('''
|
| +class C<T extends num> {}
|
| +var x = new C<int>();
|
| +''');
|
| + expect(unit.topLevelVariables[0].type.toString(), 'C<int>');
|
| + }
|
| +
|
| void test_instantiateToBounds_notGeneric() {
|
| var unit = checkFile(r'''
|
| class A {}
|
|
|