Analyzer incorrectly resolves assignment to an instance setter which shadows a toplevel method #37923
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.
The analyzer reports an error on the assignments to
topLevelMethod
andtopLevelMethod2
in the code below. This seems incorrect by my reading of the specification:There is a clear innermost declaration whose name is
topLevelMethod=
(topLevelMethod2=
) here, unless there is something non-obvious about the terminology here. The CFE issues no error on this code.cc @eernstg @lrhn @munificent
The text was updated successfully, but these errors were encountered: