| 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 d8b1513efbc4b68be6c0ba75becf16b37d85ec09..5158c9070561ecbc4d13a94a87a9597667ed963d 100644
|
| --- a/pkg/analyzer/test/generated/compile_time_error_code_test.dart
|
| +++ b/pkg/analyzer/test/generated/compile_time_error_code_test.dart
|
| @@ -881,6 +881,21 @@ foo(var p) {
|
| verify([source]);
|
| }
|
|
|
| + test_const_invalid_constructorFieldInitializer_fromLibrary() async {
|
| + addNamedSource('/lib.dart', r'''
|
| +class A<T> {
|
| + final int f;
|
| + const A() : f = T.foo;
|
| +}
|
| +''');
|
| + Source source = addSource(r'''
|
| +import 'lib.dart';
|
| +const a = const A();
|
| +''');
|
| + await computeAnalysisResult(source);
|
| + assertErrors(source, [CompileTimeErrorCode.CONST_EVAL_THROWS_EXCEPTION]);
|
| + }
|
| +
|
| test_constConstructor_redirect_generic() async {
|
| Source source = addSource(r'''
|
| class A<T> {
|
|
|