| 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 810c05239cd8bad3c6b5438b7e345012fbaa7ddb..2465bfd65aae2d82459ec5b4cd27eb0a3afce15a 100644
|
| --- a/pkg/analyzer/test/src/task/strong/inferred_type_test.dart
|
| +++ b/pkg/analyzer/test/src/task/strong/inferred_type_test.dart
|
| @@ -2287,6 +2287,24 @@ class Foo {
|
| }''');
|
| }
|
|
|
| + void test_inferredType_isEnum() {
|
| + var mainUnit = checkFile('''
|
| +enum E { v1 }
|
| +final x = E.v1;
|
| +''');
|
| + var x = mainUnit.topLevelVariables[0];
|
| + expect(x.type.toString(), 'E');
|
| + }
|
| +
|
| + void test_inferredType_isEnumValues() {
|
| + var mainUnit = checkFile('''
|
| +enum E { v1 }
|
| +final x = E.values;
|
| +''');
|
| + var x = mainUnit.topLevelVariables[0];
|
| + expect(x.type.toString(), 'List<E>');
|
| + }
|
| +
|
| void test_inferredType_isTypedef() {
|
| var mainUnit = checkFile('''
|
| typedef void F();
|
|
|