Support private package properties in inline functions
This commit is contained in:
@@ -1,10 +0,0 @@
|
||||
import test.*
|
||||
|
||||
fun box() : String {
|
||||
val p = P()
|
||||
|
||||
if (p.testPrivate() != "OK") return "fail 1 ${p.testPrivate()}"
|
||||
|
||||
if (p.testFinal() != "OK") return "fail 2 ${p.testFinal()}"
|
||||
return "OK"
|
||||
}
|
||||
@@ -1,23 +0,0 @@
|
||||
package test
|
||||
|
||||
class P {
|
||||
private val FOO_PRIVATE = "OK"
|
||||
|
||||
final val FOO_FINAL = "OK"
|
||||
|
||||
private inline fun fooPrivate(): String {
|
||||
return FOO_PRIVATE
|
||||
}
|
||||
|
||||
private inline fun fooFinal(): String {
|
||||
return FOO_FINAL
|
||||
}
|
||||
|
||||
fun testPrivate(): String {
|
||||
return fooPrivate()
|
||||
}
|
||||
|
||||
fun testFinal(): String {
|
||||
return fooFinal()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user