This repository was archived by the owner on Feb 22, 2018. It is now read-only.
This repository was archived by the owner on Feb 22, 2018. It is now read-only.
Typedef with untyped args appear to generate spurious downcast messages #10
Closed
Description
Maybe I am confused about where the downcast is coming from but I don't understand why this generates a downcast.
typedef String StringProvider(data);
void main() {
List<StringProvider> providers = <StringProvider>[(_) => "foo", (_) => "bar"];
String someString = providers[1]("arg ignored"); // Generates DownCast warning
}