Add tests for obsolete issues

#KT-12126
 #KT-12189
 #KT-23628
 #KT-24209
 #KT-34338
 #KT-47279
 #KT-48498
This commit is contained in:
Alexander Udalov
2021-08-31 16:32:07 +02:00
committed by Space
parent 5c3ce66e99
commit d5372521f1
28 changed files with 400 additions and 0 deletions
@@ -0,0 +1,25 @@
// IGNORE_BACKEND: JVM
// IGNORE_BACKEND_MULTI_MODULE: JVM, JVM_MULTI_MODULE_IR_AGAINST_OLD
// FILE: a.kt
package test
open class A {
val v = "OK"
open inner class AA {
protected inline fun inAA(crossinline modifier: (String) -> String): String = modifier(v)
}
}
// FILE: b.kt
import test.*
class B : A() {
inner class BB : AA() {
fun test(): String = inAA { i -> i }
}
}
fun box(): String = B().BB().test()