-
Notifications
You must be signed in to change notification settings - Fork 28
Closed
Description
Analyzer reports these errors on static fields, not instance fields.
The reason is that it is the static declaration that causes it, while the instance declaration can be declared locally, or inherited (when we cannot report on it).
It seems reasonable to me to think that enum constants are more important, so we should not blame them, but because of inheritance we have to do it on statics.
FAILED: dart2analyzer-none release_x64 co19/LanguageFeatures/Enhanced-Enum/semantics_A09_t02
Expected: Pass
Actual: MissingCompileTimeError
--- Command "dart2analyzer" (took 39ms):
DART_CONFIGURATION=ReleaseX64 sdk/bin/dartanalyzer -Dtest_runner.configuration=custom-configuration-1 --enable-experiment=enhanced-enums --ignore-unrecognized-flags --packages=/Users/scheglov/Source/Dart/sdk.git/sdk/.packages --format=json --no-hints /Users/scheglov/Source/Dart/sdk.git/sdk/tests/co19/src/LanguageFeatures/Enhanced-Enum/semantics_A09_t02.dart
static error failures:
- Missing expected unspecified error at line 26, column 13, length 2.
- Missing expected unspecified error at line 38, column 18, length 2.
- Unexpected error at line 22, column 3, length 2: COMPILE_TIME_ERROR.CONFLICTING_STATIC_AND_INSTANCE
- Unexpected error at line 34, column 3, length 2: COMPILE_TIME_ERROR.CONFLICTING_STATIC_AND_INSTANCE
--- Re-run this test:
python3 tools/test.py -m release -c dart2analyzer co19/LanguageFeatures/Enhanced-Enum/semantics_A09_t02
Metadata
Metadata
Assignees
Labels
No labels