Open chloestefantsova opened 1 week ago
/cc @eernstg @sgrekhov
I hope you don't mind me chiming in. I did some debugging and it seems this is where the nullability from int?
gets lost: https://github.com/dart-lang/sdk/blob/main/pkg/analyzer/lib/src/dart/resolver/prefix_expression_resolver.dart#L231-L232
I hope you don't mind me chiming in.
No, we don't mind. We welcome all contributions. Thanks for digging into this and letting us know what you found!
Consider the following code:
The expected static type of
++x
isint?
, given the return type ofoperator+
. However, the Analyzer reports the following warning: