You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
classActionDispatcher<P> {
voidcall([P value]) { }
}
classBar { }
classFooActions {
ActionDispatcher<Bar> get foo =>newActionDispatcher<Bar>();
}
voidmain() {
// Error: A value of type '#lib1::Bar' can't be assigned to a variable of type '#lib1::ActionDispatcher::P'.// Try changing the type of the left hand side, or casting the right hand side to '#lib1::ActionDispatcher::P'. ^newFooActions().foo(newBar());
newFooActions().foo.call(newBar()); // No error
(newFooActions().foo)(newBar()); // No error
}
might be related to @stereotype441's refactoring of callables.
Reduced from a case provided by @zoechi from his Flutter project hence marking Flutter.