Fix for KT-12106: import static of reified companion object method throws IllegalAccessError
#KT-12106 Fixed
This commit is contained in:
committed by
Mikhael Bogdanov
parent
5df52e08cc
commit
abc7d5101d
@@ -0,0 +1,19 @@
|
||||
// FILE: 1.kt
|
||||
|
||||
package test
|
||||
|
||||
object Host {
|
||||
// private final foo()V
|
||||
inline fun <reified T> foo(): String {
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// FILE: 2.kt
|
||||
|
||||
import test.Host.foo
|
||||
|
||||
fun box(): String {
|
||||
return foo<Any>()
|
||||
}
|
||||
Reference in New Issue
Block a user