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()
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
open class SuperClass(val arg: () -> String)
|
||||
|
||||
object obj {
|
||||
|
||||
fun foo(): String {
|
||||
return "OK"
|
||||
}
|
||||
|
||||
class Foo : SuperClass(::foo)
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
return obj.Foo().arg()
|
||||
}
|
||||
Reference in New Issue
Block a user