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

Record type annotations as bounds to type parameters #50006

Closed
scheglov opened this issue Sep 19, 2022 · 1 comment
Closed

Record type annotations as bounds to type parameters #50006

scheglov opened this issue Sep 19, 2022 · 1 comment
Assignees
Labels
analyzer-spec Issues with the analyzer's implementation of the language spec area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. P1 A high priority bug; for example, a single project is unusable or has many test failures

Comments

@scheglov
Copy link
Contributor

So far I think that this code should be OK, but we don't resolve T to its bounds.

num foo<T extends (num, {String name})>(T r) => r.$0;

The comment for DartType _resolveTypeParameter references dart-lang/language#1182, which might be pertinent, but might be not.

@scheglov scheglov added area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. analyzer-spec Issues with the analyzer's implementation of the language spec labels Sep 19, 2022
@scheglov scheglov self-assigned this Sep 21, 2022
@scheglov
Copy link
Contributor Author

copybara-service bot pushed a commit that referenced this issue Sep 21, 2022
… with it.

Bug: #50006
Change-Id: I8b9fcff2c7bb560a764a336c8dceccbfdd06cdaa
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/260420
Commit-Queue: Konstantin Shcheglov <[email protected]>
Reviewed-by: Brian Wilkerson <[email protected]>
@scheglov scheglov added the P1 A high priority bug; for example, a single project is unusable or has many test failures label Sep 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
analyzer-spec Issues with the analyzer's implementation of the language spec area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. P1 A high priority bug; for example, a single project is unusable or has many test failures
Projects
None yet
Development

No branches or pull requests

1 participant