IR: add and unmute tests
This commit is contained in:
@@ -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()
|
||||
Reference in New Issue
Block a user