Add test for issue KT-23582
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
package m4
|
||||
|
||||
import m3.*
|
||||
|
||||
inline fun foo(action: () -> Int): Int {
|
||||
return action()
|
||||
}
|
||||
|
||||
fun bar(): Int {
|
||||
foo { return 100 }
|
||||
return -99
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
if (bar() == 100) return "OK"
|
||||
return "fail"
|
||||
}
|
||||
Reference in New Issue
Block a user