Migrate boxInline tests to new multi-file framework
This commit is contained in:
committed by
Alexander Udalov
parent
fa1f7d988e
commit
cc84aabdcf
+31
@@ -0,0 +1,31 @@
|
||||
// FILE: 1.kt
|
||||
|
||||
package test
|
||||
|
||||
class A {
|
||||
|
||||
fun callK(): String {
|
||||
return "K"
|
||||
}
|
||||
|
||||
fun callO(): String {
|
||||
return "O"
|
||||
}
|
||||
|
||||
fun testCall(): String = test { callO() }
|
||||
|
||||
inline fun test(crossinline l: () -> String): String {
|
||||
return {
|
||||
l() + callK()
|
||||
}()
|
||||
}
|
||||
}
|
||||
|
||||
// FILE: 2.kt
|
||||
|
||||
//NO_CHECK_LAMBDA_INLINING
|
||||
import test.*
|
||||
|
||||
fun box(): String {
|
||||
return A().testCall()
|
||||
}
|
||||
Reference in New Issue
Block a user