Add tests for obsolete issues
#KT-21085 Obsolete #KT-13846 Obsolete
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
// IGNORE_BACKEND: JVM_IR
|
||||
|
||||
class Delegate(val value: String) {
|
||||
operator fun getValue(thisRef: Any?, kProperty: Any?) = value
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
val x by Delegate("O")
|
||||
|
||||
class Local(val y: String) {
|
||||
val fn = { x + y }
|
||||
}
|
||||
|
||||
return Local("K").fn()
|
||||
}
|
||||
Reference in New Issue
Block a user