Add tests for issues fixed in JVM IR
Note that KT-30696 is fixed only in the single-module case, and KT-42012 is not fixed fully (see KT-44855). #KT-30041 #KT-30629 #KT-30696 #KT-30933 #KT-32351 #KT-32749 #KT-38849 #KT-42012 #KT-42990 #KT-44234 #KT-44529 #KT-44631 #KT-44647
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
// NO_CHECK_LAMBDA_INLINING
|
||||
// WITH_RUNTIME
|
||||
// IGNORE_BACKEND: JVM
|
||||
// IGNORE_BACKEND_MULTI_MODULE: JVM, JVM_IR, JVM_MULTI_MODULE_OLD_AGAINST_IR, JVM_MULTI_MODULE_IR_AGAINST_OLD
|
||||
// FILE: 1.kt
|
||||
|
||||
interface Flow<T> {
|
||||
val result: String
|
||||
}
|
||||
|
||||
inline fun <reified T> foo() =
|
||||
object {
|
||||
fun test() = object : Flow<T> {
|
||||
override val result: String = "OK"
|
||||
}
|
||||
}.test()
|
||||
|
||||
// FILE: 2.kt
|
||||
|
||||
fun box(): String =
|
||||
foo<Any>().result
|
||||
Reference in New Issue
Block a user