Fix for KT-13182: Regression: compiler internal error at inline

#KT-13182 Fixed
This commit is contained in:
Michael Bogdanov
2016-07-26 11:12:17 +03:00
parent 99cdc41ab6
commit 9b9abb2e10
4 changed files with 40 additions and 2 deletions
@@ -0,0 +1,25 @@
// FILE: 1.kt
package test
inline fun test(cond: Boolean, crossinline cif: () -> String): String {
return if (cond) {
{ cif() }()
}
else {
cif()
}
}
// FILE: 2.kt
import test.*
fun box(): String {
val s = "OK"
return test(true) {
{
s
}()
}
}