Update maxStack on synthetic instruction insertion

#KT-19723 Fixed
This commit is contained in:
Mikhael Bogdanov
2017-08-17 16:30:46 +02:00
parent 39599fc7c9
commit 8af7a25f8e
6 changed files with 67 additions and 8 deletions
@@ -0,0 +1,21 @@
// FILE: 1.kt
package test
inline fun String.fire(message: String? = null) {
val res = this + message!!
}
// FILE: 2.kt
// NO_CHECK_LAMBDA_INLINING
import test.*
fun box(): String {
val receiver = "receiver"
"".let {
{
receiver.fire()
}
}
return "OK"
}