Fix for KT-9958: NoSuchMethodError when we call protected method from companion object
#KT-9958 Fixed
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
package a
|
||||
|
||||
import b.*
|
||||
|
||||
interface B {
|
||||
companion object : A() {}
|
||||
|
||||
fun test() {
|
||||
foo()
|
||||
}
|
||||
}
|
||||
|
||||
class C : B
|
||||
|
||||
fun box(): String {
|
||||
C().test()
|
||||
return result
|
||||
}
|
||||
Reference in New Issue
Block a user