Fix for KT-13182: Regression: compiler internal error at inline
#KT-13182 Fixed
This commit is contained in:
@@ -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
|
||||
}()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user