Open
Description
Example:
const v = null as Never?;
The analyzer reports a compile-time error for this:
line 3 • Evaluation of this constant expression throws an exception.
Doesn't say which exception, and it shouldn't since null
is a valid value of any nullable type.
(Doesn't check type for nullability?)