Bogus analyzer error for late
field initializer referencing super?
#46850
Labels
area-analyzer
Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
P2
A bug or feature request we're likely to work on
late
member variables are able to use field initializers that referencethis
, so I don't see whysuper
should be any different. Given the following code:the analyzer prints:
However, there seems to be no issue when actually running the above code. Regardless of whether
super
should be allowed here, this behavior is inconsistent.I've observed the analyzer error in both DartPad (Flutter 2.2.3 Dart SDK 2.13.4) and when running
dart analyze
(Dart SDK version: 2.13.4 (stable)).The text was updated successfully, but these errors were encountered: