Type inference error in NNBD SDK #40492
Labels
legacy-area-front-end
Legacy: Use area-dart-model instead.
NNBD
Issues related to NNBD Release
vm-nnbd-unfork-sdk
Label for all issues that need to be done before the nnbd sdk can be unforked
I'm hitting a type inference error in when I run some tests with the NNBD SDK. Minimal example:
This outputs "[in async function]" on the old SDK, but in the NNBD SDK it gives this error:
I can work around it by wrapping
events.add
in a lambda:(x) => events.add(x)
@a-siva fixed a similar issue in the libs by specifying the arg type in the lambda, and thinks it's a type inference bug in the CFE.
The text was updated successfully, but these errors were encountered: