Analyzer is of two minds regarding a property/super-parameter accessed as the prefix of a method call target. #59996
Labels
analyzer-spec
Issues with the analyzer's implementation of the language spec
area-analyzer
Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
P3
A lower priority bug or feature request
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
There are a few requirements to triggering this, which explains why it still exists on stable branch (and all the way up to main branch):
f.isEven
claiming thatf
could benull
.f?.isEven
orf!.isEven
, then there are warnings thatf
cannot benull
.Code requirements:
f
.f
.f
(.isEven
) in ctor body, and a method (.toString()
) is called on the property.A hint: when you Go-to-definition of
f
in the original code, you are taken tosuper.f
. When you Go-to-definition atf?
orf!
, you are taken to the super field.The text was updated successfully, but these errors were encountered: