Removed accessors for const properties
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import test.*
|
||||
|
||||
fun box(): String {
|
||||
val packageResult = packageInline { it + "K" }
|
||||
if (packageResult != "OK") return "package inline fail: $packageResult"
|
||||
|
||||
val samePackageResult = samePackageCall()
|
||||
if (samePackageResult != "OK") return "same package inline fail: $samePackageResult"
|
||||
|
||||
return "OK"
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package test
|
||||
|
||||
private const val packageProp = "O"
|
||||
|
||||
internal inline fun packageInline(p: (String) -> String): String {
|
||||
return p(packageProp)
|
||||
}
|
||||
|
||||
internal fun samePackageCall(): String {
|
||||
return packageInline { it + "K"}
|
||||
}
|
||||
@@ -1,17 +0,0 @@
|
||||
const val CONST_VAL = 1
|
||||
|
||||
object A {
|
||||
const val CONST_VAL = 2
|
||||
}
|
||||
|
||||
class B {
|
||||
companion object {
|
||||
const val CONST_VAL = 2
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
3 DEPRECATED are for getCONST_VAL
|
||||
*/
|
||||
|
||||
// 3 DEPRECATED
|
||||
Reference in New Issue
Block a user