Skip to content

[Wildcard Variables] support for CONFLICTING_TYPE_VARIABLE_AND_MEMBER #56397

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

Closed
Tracked by #55680
pq opened this issue Aug 7, 2024 · 0 comments
Closed
Tracked by #55680

[Wildcard Variables] support for CONFLICTING_TYPE_VARIABLE_AND_MEMBER #56397

pq opened this issue Aug 7, 2024 · 0 comments
Assignees
Labels
dart-model-analyzer-spec Issues with the analyzer's implementation of the language spec feature-wildcard-variables Implementation of the wildcard variables feature legacy-area-analyzer Use area-devexp instead. P2 A bug or feature request we're likely to work on type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)

Comments

@pq
Copy link
Member

pq commented Aug 7, 2024

For example, https://dart-ci.appspot.com/log/any/analyzer-asserts-linux/25914/language/wildcard_variables/declarations/class_generic_type_parameter_test:

--- Command "dart2analyzer" (took 41ms):
DART_CONFIGURATION=ReleaseX64 out/ReleaseX64/dart-sdk/bin/dart out/ReleaseX64/gen/dartanalyzer.dart.snapshot -Dtest_runner.configuration=analyzer-asserts-linux --enable-experiment=wildcard-variables --ignore-unrecognized-flags --packages=/b/s/w/ir/cache/builder/sdk/.dart_tool/package_config.json --format=json /b/s/w/ir/cache/builder/sdk/tests/language/wildcard_variables/declarations/class_generic_type_parameter_test.dart

unexpected analysis errors in class_generic_type_parameter_test.dart:
- Line 23, column 9: COMPILE_TIME_ERROR.CONFLICTING_TYPE_VARIABLE_AND_MEMBER
  '_' can't be used to name both a type variable and a member in this class.

- Line 23, column 12: COMPILE_TIME_ERROR.CONFLICTING_TYPE_VARIABLE_AND_MEMBER
  '_' can't be used to name both a type variable and a member in this class.

--- Re-run this test:
python3 tools/test.py -n analyzer-asserts-linux language/wildcard_variables/declarations/class_generic_type_parameter_test
@pq pq self-assigned this Aug 7, 2024
@pq pq added legacy-area-analyzer Use area-devexp instead. P2 A bug or feature request we're likely to work on type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) dart-model-analyzer-spec Issues with the analyzer's implementation of the language spec feature-wildcard-variables Implementation of the wildcard variables feature labels Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dart-model-analyzer-spec Issues with the analyzer's implementation of the language spec feature-wildcard-variables Implementation of the wildcard variables feature legacy-area-analyzer Use area-devexp instead. P2 A bug or feature request we're likely to work on type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)
Projects
None yet
Development

No branches or pull requests

1 participant