class Foo {
public static function foo() {}
}
class Bar {
public static function bar() {}
}
and another module imports a specific type and uses it
import Foo.Bar;
function main() {
Bar.bar();
}
You will receive an erroneous "Unused import/using" warning on that import. Changing the line to import the entire module import Foo has it correctly detected as used. Importing specific module level functions do not suffer from this.
This works fine on 4.3.x so appears to be a regression.
On nightlies if you have module
Foo
containingand another module imports a specific type and uses it
You will receive an erroneous "Unused import/using" warning on that import. Changing the line to import the entire module
import Foo
has it correctly detected as used. Importing specific module level functions do not suffer from this. This works fine on 4.3.x so appears to be a regression.