tests: Update external tests (1.1.2-dev-393)
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
// NO_CHECK_LAMBDA_INLINING
|
||||
// FILE: 1.kt
|
||||
|
||||
package test
|
||||
|
||||
inline fun inlineCall(p: () -> Unit) {
|
||||
p()
|
||||
}
|
||||
|
||||
// FILE: 2.kt
|
||||
|
||||
import test.*
|
||||
|
||||
fun box(): String {
|
||||
var gene = "g1"
|
||||
|
||||
inlineCall {
|
||||
val value = 10.0
|
||||
inlineCall {
|
||||
{
|
||||
value
|
||||
gene = "OK"
|
||||
}()
|
||||
}
|
||||
}
|
||||
|
||||
return gene
|
||||
}
|
||||
Reference in New Issue
Block a user