Closed sgrekhov closed 4 years ago
It might be helpful to note that the expected errors are on the declarations of sTest
, mTest
, gTest
, and test
, because each of them has the body {}
which may (indeed will) complete normally, and each of them returns A
, which is a potentially non-nullable type.
NNBD specification reads
In fact there are no any error. Example
Tested on
dartanalyzer version 2.8.0-dev.6.0