File tree Expand file tree Collapse file tree 1 file changed +5
-16
lines changed
pkg/analyzer/test/generated Expand file tree Collapse file tree 1 file changed +5
-16
lines changed Original file line number Diff line number Diff line change @@ -421,16 +421,10 @@ var v = const C<String>();
421
421
await computeAnalysisResult (source);
422
422
assertErrors (
423
423
source,
424
- useCFE
425
- ? [
426
- CompileTimeErrorCode .CONST_INITIALIZED_WITH_NON_CONSTANT_VALUE ,
427
- StaticTypeWarningCode .INVALID_ASSIGNMENT
428
- ]
429
- : [
430
- CheckedModeCompileTimeErrorCode
431
- .CONST_CONSTRUCTOR_FIELD_TYPE_MISMATCH ,
432
- StaticTypeWarningCode .INVALID_ASSIGNMENT
433
- ],
424
+ [
425
+ CheckedModeCompileTimeErrorCode .CONST_CONSTRUCTOR_FIELD_TYPE_MISMATCH ,
426
+ StaticTypeWarningCode .INVALID_ASSIGNMENT
427
+ ],
434
428
);
435
429
verify ([source]);
436
430
}
@@ -462,12 +456,7 @@ var v = const C<int>();
462
456
await computeAnalysisResult (source);
463
457
assertErrors (
464
458
source,
465
- useCFE
466
- ? [
467
- CompileTimeErrorCode .CONST_INITIALIZED_WITH_NON_CONSTANT_VALUE ,
468
- StaticTypeWarningCode .INVALID_ASSIGNMENT
469
- ]
470
- : [StaticTypeWarningCode .INVALID_ASSIGNMENT ],
459
+ [StaticTypeWarningCode .INVALID_ASSIGNMENT ],
471
460
);
472
461
verify ([source]);
473
462
}
You can’t perform that action at this time.
0 commit comments