Add diagnostics for default lambda inlining
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
// FILE: 1.kt
|
||||
//WITH_RUNTIME
|
||||
package test
|
||||
|
||||
var res = ""
|
||||
|
||||
inline fun inlineFun(vararg s : () -> String = arrayOf({ "OK" })) {
|
||||
for (p in s) {
|
||||
res += p()
|
||||
}
|
||||
}
|
||||
|
||||
// FILE: 2.kt
|
||||
//NO_CHECK_LAMBDA_INLINING
|
||||
import test.*
|
||||
|
||||
fun box(): String {
|
||||
inlineFun()
|
||||
return res
|
||||
}
|
||||
Reference in New Issue
Block a user