KT-42933 inline class backing field can't be static
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
class Delegate {
|
||||
operator fun getValue(t: Any?, p: Any): String = "OK"
|
||||
}
|
||||
|
||||
inline class Kla1(val default: Int) {
|
||||
fun getValue(): String {
|
||||
val prop by Delegate()
|
||||
return prop
|
||||
}
|
||||
}
|
||||
|
||||
fun box() = Kla1(1).getValue()
|
||||
Reference in New Issue
Block a user