analyzer: missing type propagation of method calls on top-level final fields #17800
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
type-enhancement
A request for a change that isn't a bug
I have code like:
void main(List arguments) {
var args = _argParser.parse(arguments);
// ... more code ...
}
final _argParser = new ArgParser()
// <snip>
..addFlag('help', help: 'prints this message');
When hovering over the bottom _argParser, it displays the propagated type as "ArgParser". However, when hovering over the use in main, it doesn't show an inferred type, and the ".parse" doesn't let me "go to declaration" or show a method tooltip. It also means that "var args" doesn't get a propagated type either.
Dart Editor version 1.3.0.dev_06_01 (DEV)
Dart SDK version 1.3.0-dev.6.1
The text was updated successfully, but these errors were encountered: