Fix for KT-10590: IllegalAccessError when protected getter of Java base class is accessed from lambda using property access syntax
This commit is contained in:
+19
@@ -0,0 +1,19 @@
|
||||
package z
|
||||
|
||||
import JavaBaseClass
|
||||
|
||||
object KotlinExtender : JavaBaseClass() {
|
||||
@JvmStatic fun test(): String {
|
||||
return runSlowly {
|
||||
foo = "OK"
|
||||
foo
|
||||
}
|
||||
}
|
||||
}
|
||||
fun runSlowly(f: () -> String): String {
|
||||
return f()
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
return KotlinExtender.test()
|
||||
}
|
||||
Reference in New Issue
Block a user