IR: add and unmute tests

This commit is contained in:
Georgy Bronnikov
2020-08-09 17:03:33 +03:00
parent 85ba170217
commit ea57b4cccb
10 changed files with 94 additions and 1 deletions
@@ -0,0 +1,13 @@
suspend fun susp() {}
interface I {
suspend fun problematic() {
run {
susp()
}
}
}
// We only test compilation.
fun box() = "OK"
@@ -1,5 +1,4 @@
// !LANGUAGE: +InlineClasses
// IGNORE_BACKEND_FIR: JVM_IR
class Outer<X>(val x: X) {
inner class Inner<Y>(val y: Y) {
@@ -0,0 +1,11 @@
class Q<TT> {
fun <T> qz(x: T, block: (T) -> String) = block(x)
fun problematic(): String {
class CC
return qz(CC::class) { "OK" }
}
}
fun box() = Q<Int>().problematic()