Closed
Description
Here is an example where a variable is used but the analyzer thinks it is not used:
class Foo {
Foo operator |(Foo _) {
return this;
}
}
main() {
var f = new Foo();
f |= new Foo();
}
$ dartanalyzer test.dart
Analyzing [test.dart]...
[hint] The value of the local variable 'f' isn't used. (test.dart, line 9, col 7)
1 hint found.
$ dartanalyzer --version
dartanalyzer version 1.22.1