Analyzer does not detect usage of void in record #52759
Labels
analyzer-spec
Issues with the analyzer's implementation of the language spec
area-analyzer
Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
P2
A bug or feature request we're likely to work on
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
After seeing dart-lang/language#3157 it looks like the analyzer currently fails to report the usage of
void
in a Record while the compiler is not quite happy about such a thing.The following piece of code is allowed by the analyzer but fails when trying to run with VM or compile to an exe:
Error from compile (nearly the same output when running with
dart
):Dart SDK Version:
The text was updated successfully, but these errors were encountered: