Missing compile-time type check for a default case in a null-guarded check #36952
Labels
area-language
Dart language related items (some items might be better tracked at github.com/dart-lang/language).
Uh oh!
There was an error while loading. Please reload this page.
This throws a runtime type error instead, when the null-checked argument is indeed null. I'm running Dart SDK Version 2.1.2 on MacOSX, but the issue is reproducible directly in a dartpad: https://dartpad.dartlang.org/bab95e3320cb9abbbb08282210c07ca4
The text was updated successfully, but these errors were encountered: