KT-7484 Companion object is marked unused if it's only usages are statically imported from Java
#KT-7484 fixed
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import static Foo.*;
|
||||
|
||||
class JavaUsage {
|
||||
public static void main(String[] args) {
|
||||
System.out.println(Foo.CONST);
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
Class static member access (3: 28) System.out.println(Foo.CONST);
|
||||
Class static member access (4: 9) Foo.s();
|
||||
Unclassified usage (5: 13) Foo.Companion.f();
|
||||
Class static member access (5: 28) System.out.println(Foo.CONST);
|
||||
Class static member access (6: 9) Foo.s();
|
||||
Unclassified usage (1: 15) import static Foo.*;
|
||||
Unclassified usage (7: 13) Foo.Companion.f();
|
||||
Reference in New Issue
Block a user