| Index: pkg/analyzer/test/generated/incremental_resolver_test.dart
|
| diff --git a/pkg/analyzer/test/generated/incremental_resolver_test.dart b/pkg/analyzer/test/generated/incremental_resolver_test.dart
|
| index d880c28f7200e9142f372d9b24f8c124eb8f884d..0d4c7eeca9afe8ed5a30026fa39dcf9b79f5159d 100644
|
| --- a/pkg/analyzer/test/generated/incremental_resolver_test.dart
|
| +++ b/pkg/analyzer/test/generated/incremental_resolver_test.dart
|
| @@ -3198,6 +3198,29 @@ main() {
|
| ''');
|
| }
|
|
|
| + void test_false_constConstructor_initializer() {
|
| + _resolveUnit(r'''
|
| +class C {
|
| + final int x;
|
| + const C(this.x);
|
| + const C.foo() : x = 0;
|
| +}
|
| +main() {
|
| + const {const C(0): 0, const C.foo(): 1};
|
| +}
|
| +''');
|
| + _updateAndValidate(r'''
|
| +class C {
|
| + final int x;
|
| + const C(this.x);
|
| + const C.foo() : x = 1;
|
| +}
|
| +main() {
|
| + const {const C(0): 0, const C.foo(): 1};
|
| +}
|
| +''', expectedSuccess: false);
|
| + }
|
| +
|
| void test_false_topLevelFunction_name() {
|
| _resolveUnit(r'''
|
| a() {}
|
|
|