-
Notifications
You must be signed in to change notification settings - Fork 27
Flag for error on implicit dynamic #363
Comments
Nice! another variant, more for codegen, is "no dynamic invokes" ... this would allow us to omit some helper code. Possibly useful if you're trying to export a Dart library to JS and you want really small code size. (of course, as far as code size is concerned, we have bigger fish to fry in the SDK libs) |
Would you guys want an error here:
? |
I filed a related bug for no reified dynamics: #365 |
Yes, I'd want an error there too. |
this is moved to the SDK now dart-lang/sdk#24712, dart-lang/sdk#25573 |
We've discussed this a few times, but I figured I should file a tracking issue (if there isn't one already). I would like to be able to run the analyzer in strong mode with an option to tell me if the type inference engine ever can't pick a static type and ends up picking
dynamic
instead.For example, I would expect to get an error here:
But not here:
The text was updated successfully, but these errors were encountered: