Files
kotlin-fork/compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/kt45704_elvisInInlineFun.kt
T
Alexander Udalov 328853dffe Add tests for obsolete issues
(Test for KT-37331 is added to multiplatform/defaultArguments/suspend.kt.)

 #KT-30080
 #KT-33641
 #KT-36237
 #KT-36952
 #KT-37331
 #KT-38920
 #KT-39256
 #KT-42415
 #KT-44636
 #KT-45704
 #KT-47084
 #KT-47894
2022-03-08 14:19:37 +01:00

18 lines
308 B
Kotlin
Vendored

inline fun inlineCall(block: (CharSequence, CharSequence) -> Unit) {
for (i in 0..0) {
val s = "K".takeIf { true }
block(
"O",
s ?: continue
)
}
}
fun box(): String {
inlineCall { a, b ->
return a.toString() + b
}
return "Fail"
}