Add tests for obsolete issues

#KT-21085 Obsolete
 #KT-13846 Obsolete
This commit is contained in:
Mikhael Bogdanov
2019-02-07 11:28:46 +01:00
parent 6d24d50df6
commit 6aaa601239
7 changed files with 79 additions and 0 deletions
@@ -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()
}