Strong mode implicit generic instantiations should be limited to known targets #28162
Labels
dart-model-analyzer-spec
Issues with the analyzer's implementation of the language spec
legacy-area-analyzer
Use area-devexp instead.
P2
A bug or feature request we're likely to work on
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
Milestone
Uh oh!
There was an error while loading. Please reload this page.
[Update: 2018.06.05] The new CFE implements this correctly, analyzer handles all but the generic function typed variable case correctly.
Per language team decision, we will not support implicit instantiation (via inference) of arbitrary function expressions, but instead only for statically resolvable tearoffs. That is, a reference to a generic function declaration or a closurization of a generic method can be simultaneously instantiated at the tearoff point, but a general function expression cannot be.
Examples:
[Updated 2017.06.02 with bug fix]
The text was updated successfully, but these errors were encountered: