Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[cfe] Enum named _ issue #55757

Open
sgrekhov opened this issue May 17, 2024 · 0 comments
Open

[cfe] Enum named _ issue #55757

sgrekhov opened this issue May 17, 2024 · 0 comments
Labels
area-front-end Use area-front-end for front end / CFE / kernel format related issues. cfe-features General feature work in the CFE.

Comments

@sgrekhov
Copy link
Contributor

The test https://github.com/dart-lang/co19/blob/master/LanguageFeatures/Wildcards/other_declarations_A04_t07.dart fails on CFE (works well in the analyzer).

/=======================================================================================================================\
| co19/LanguageFeatures/Wildcards/other_declarations_A04_t07 is new and failed (MissingCompileTimeError, expected Pass) |
\=======================================================================================================================/

--- Command "fasta" (took 21ms):
(cd /b/s/w/ir/cache/builder/sdk/ ; DART_CONFIGURATION=ReleaseX64 ./out/ReleaseX64/dart ./pkg/front_end/tool/_fasta/compile.dart --verify --skip-platform-verification -o ./out/ReleaseX64/generated_compilations/cfe-strong-linux/tests_co19_src_LanguageFeatures_Wildcards_other_declarations_A04_t07/out.dill --platform ./out/ReleaseX64/vm_platform_strong.dill -Dtest_runner.configuration=cfe-strong-linux --enable-experiment=wildcard-variables --packages=./.dart_tool/package_config.json ./tests/co19/src/LanguageFeatures/Wildcards/other_declarations_A04_t07.dart )

static error failures:
- Unexpected error at tests/co19/src/LanguageFeatures/Wildcards/other_declarations_A04_t07.dart line 15, column 9: Couldn't find constructor '_'.

--- Re-run this test:
python3 tools/test.py -n cfe-strong-linux co19/LanguageFeatures/Wildcards/other_declarations_A04_t07

I don't see anything wrong on line 15

// SharedOptions=--enable-experiment=wildcard-variables

enum _ {e1;} // Line 15

int _ = 1;
//  ^
// [analyzer] unspecified
// [cfe] unspecified

const _ = 1;
//    ^
// [analyzer] unspecified
// [cfe] unspecified
...

The following code produces no issues in both CFE and analyzer

enum _ {e1;}

main() {
  print(_);
}
@sgrekhov sgrekhov added the area-front-end Use area-front-end for front end / CFE / kernel format related issues. label May 17, 2024
@johnniwinther johnniwinther added cfe-messages Poor/undesirable messaging in errors/warnings emitted by the CFE. cfe-features General feature work in the CFE. and removed cfe-messages Poor/undesirable messaging in errors/warnings emitted by the CFE. labels May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-front-end Use area-front-end for front end / CFE / kernel format related issues. cfe-features General feature work in the CFE.
Projects
None yet
Development

No branches or pull requests

2 participants