KT-9638 Optimize imports: don't create import for static methods from superclasses
#KT-9638 Fixed
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import A.Companion.run
|
||||
|
||||
interface Action<T> {
|
||||
fun run(t: T)
|
||||
}
|
||||
|
||||
open class A {
|
||||
companion object : Action<String> {
|
||||
override fun run(t: String) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class B : A() {
|
||||
fun foo() {
|
||||
run("")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user