Dart produces compile error whereas analyzer does not when trying to add null
to null
.
#36343
Labels
legacy-area-analyzer
Use area-devexp instead.
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
Dart version: 2.2.1-dev.1.1
OS: Windows 10
The following test example tries to calculate
null + null
expression:Analyzer passes with this whereas dart unexpectedly produces compile time error.
Sample output is:
Please note if I change the source for the following:
it works as expected: dart throws runtime exception, and so finally it prints "OK" as expected.
The text was updated successfully, but these errors were encountered: