Skip to content

Extensions don't trigger library import for their names only #59723

Closed
@FMorschel

Description

@FMorschel

Repro:

extension.dart

extension Ext on int {}

main.dart:

/// This is a dart doc for [f] that uses an [Ext] type.
void f<E extends Ext>() {}

Neither Ext will trigger the quick-fix for the importing of extension.dart. If you add a line Ext; inside f it does.

I volunteer to help with this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3A lower priority bug or feature requestdevexp-quick-fixIssues with analysis server (quick) fixeslegacy-area-analyzerUse area-devexp instead.type-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

    Issue actions