Skip to content

[Analyzer] Improve error message when extension type is not well-bounded #54098

Open
Listed in
@sgrekhov

Description

@sgrekhov

Based on the dart-lang/co19#2384 (comment) and #54097 (comment), please, improve analyzer error messafe in case of

extension type V<T extends V<T>>(T id) {}

The current message

COMPILE_TIME_ERROR.TYPE_PARAMETER_SUPERTYPE_OF_ITS_BOUND
'T' can't be a supertype of its upper bound.

is not much helpfull in this case

Activity

added
P2A bug or feature request we're likely to work on
on Nov 20, 2023
added
P3A lower priority bug or feature request
and removed
P2A bug or feature request we're likely to work on
on Nov 20, 2023
added
area-devexpFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.
and removed on Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3A lower priority bug or feature requestarea-devexpFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.devexp-uxfeature-extension-typesImplementation of the extension type featuretype-enhancementA request for a change that isn't a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @srawlins@sgrekhov@bwilkerson

        Issue actions

          [Analyzer] Improve error message when extension type is not well-bounded · Issue #54098 · dart-lang/sdk