-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Open
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-quick-fixIssues with analysis server (quick) fixesIssues with analysis server (quick) fixesdevexp-serverIssues related to some aspect of the analysis serverIssues related to some aspect of the analysis servertype-enhancementA request for a change that isn't a bugA request for a change that isn't a bug
Description
Repro
a.dart
class A {}
List<A> foo() => [A()];main.dart
import 'a.dart';
class A {}
void main() {
for (A a in foo()) {
}
}Shows:
The type 'List<A>' used in the 'for' loop must implement 'Iterable' with a type argument that can be assigned to 'A'.Similar to #56505.
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-quick-fixIssues with analysis server (quick) fixesIssues with analysis server (quick) fixesdevexp-serverIssues related to some aspect of the analysis serverIssues related to some aspect of the analysis servertype-enhancementA request for a change that isn't a bugA request for a change that isn't a bug