mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 08:31:26 +00:00
Generate static accessors fro protected functions in different packages
#KT-4617 Fixed
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
package a
|
||||
|
||||
open class A {
|
||||
protected fun protectedFun(): String = "OK"
|
||||
}
|
||||
|
||||
class BSamePackage: A() {
|
||||
fun test(): String {
|
||||
val a = {
|
||||
protectedFun()
|
||||
}
|
||||
return a()
|
||||
}
|
||||
}
|
||||
|
||||
// 0 INVOKESTATIC a/BSamePackage.protectedFun
|
||||
Reference in New Issue
Block a user