Restore FieldFormalParameterElement.hasImplicitType #46039
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
We have an internal issue with code like
In https://dart-review.googlesource.com/c/sdk/+/200060 we started to set
hasImplicitType
forthis.num
totrue
. Which is correct, I think, because it does not have an explicit type specified, and it does not have its own formal parameters (so is not function typed). Then the linter will check if the name num is resolved into a class. Well, yes, it is. But we don't resolve num here, we resolve this.num.For now I will revert to the previous behavior, but we need to fix the linter, and restore the correct
hasImplicitType
value.The text was updated successfully, but these errors were encountered: