Skip to content

Two ShowCombinators and two HideCombinators should have error #56879

@FMorschel

Description

@FMorschel

If you have the following code:

import 'dart:core' show List show int hide String;   // Notice the double `show` but no analyzer error

void foo(List<int> list, String str) {}

Not List, int or String (of course) is correctly analysed showing errors like non_type_as_type_argument.

But if we remove the second show and add a , it works as expected.

I believe we should have an error message about writing down two shows or two hides if they make everything else stop working.

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-warningIssues with the analyzer's Warning codestype-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