-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
P3A lower priority bug or feature requestA lower priority bug or feature requestarea-devexpFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.For issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.devexp-warningIssues with the analyzer's Warning codesIssues with the analyzer's Warning codestype-enhancementA request for a change that isn't a bugA request for a change that isn't a bug
Description
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
Labels
P3A lower priority bug or feature requestA lower priority bug or feature requestarea-devexpFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.For issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.devexp-warningIssues with the analyzer's Warning codesIssues with the analyzer's Warning codestype-enhancementA request for a change that isn't a bugA request for a change that isn't a bug