[Test] Move KotlinAgainstKotlin tests under BlackBoxCodegen tests
This commit is contained in:
+23
@@ -0,0 +1,23 @@
|
||||
// IGNORE_BACKEND_FIR: JVM_IR
|
||||
// TARGET_BACKEND: JVM
|
||||
// MODULE: lib
|
||||
// FILE: A.kt
|
||||
|
||||
package test
|
||||
|
||||
inline fun test(s: () -> () -> String = { val z = "Outer"; { "OK" } }) =
|
||||
s()
|
||||
|
||||
val same = test()
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: B.kt
|
||||
|
||||
import test.*
|
||||
|
||||
fun box(): String {
|
||||
val inlined = test()
|
||||
if (same::class.java == inlined::class.java) return "fail 1 : ${same::class.java} == ${inlined::class.java}"
|
||||
println (inlined::class.java)
|
||||
return inlined()
|
||||
}
|
||||
Reference in New Issue
Block a user