Closed sgrekhov closed 4 years ago
Hm... The message could be different, e.g. saying that the expression is potentially nullable, but this does not change much.
"assignable to Object" means "non-nullable", so "not assignable to Object" means "not non-nullable", which is the definition of "potentially nullable".
So, I'm not sure we can do much better here, so no action for now.
According to the NNBD specification
There is an error message, but not specific. For example
I'm not 100% sure, but analyzer error messages could be more specific in this case
dartanalyzer version 2.7.0-dev.2.1