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:
@@ -0,0 +1,8 @@
|
||||
import static companionObjectWithStatics.Foo.*
|
||||
|
||||
class JavaUsage {
|
||||
public static void main(String[] args) {
|
||||
System.out.println(CONST + CONST);
|
||||
foo()
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package companionObjectWithStatics
|
||||
|
||||
class Foo {
|
||||
companion object {
|
||||
platformStatic fun foo() {
|
||||
}
|
||||
|
||||
val CONST = 111
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user