| Index: pkg/analyzer/test/generated/compile_time_error_code_test.dart
|
| diff --git a/pkg/analyzer/test/generated/compile_time_error_code_test.dart b/pkg/analyzer/test/generated/compile_time_error_code_test.dart
|
| index 2028e70a038534e5887dd66b1d18cfca96545ccf..743399e0a9a458a8df5142dfc746d3127cdc64f5 100644
|
| --- a/pkg/analyzer/test/generated/compile_time_error_code_test.dart
|
| +++ b/pkg/analyzer/test/generated/compile_time_error_code_test.dart
|
| @@ -1009,6 +1009,20 @@ const x = const A();''');
|
| verify([source]);
|
| }
|
|
|
| + void test_constEval_nonStaticField_inGenericClass() {
|
| + Source source = addSource('''
|
| +class C<T> {
|
| + const C();
|
| + T get t => null;
|
| +}
|
| +
|
| +const x = const C().t;''');
|
| + computeLibrarySourceErrors(source);
|
| + assertErrors(source,
|
| + [CompileTimeErrorCode.CONST_INITIALIZED_WITH_NON_CONSTANT_VALUE]);
|
| + verify([source]);
|
| + }
|
| +
|
| void test_constEval_propertyExtraction_targetNotConst() {
|
| Source source = addSource(r'''
|
| class A {
|
|
|