[K/N] Transform FunctionReference without bound values to ConstantValue

This commit is contained in:
Pavel Kunyavskiy
2021-07-15 16:45:23 +03:00
committed by Space
parent e4a4cd3e16
commit 504d72011b
3 changed files with 42 additions and 26 deletions
@@ -8,8 +8,9 @@ import kotlin.native.concurrent.*
import kotlin.native.internal.*
fun mainLegacyMM() {
val wrong = "wrong"
assertFailsWith<InvalidMutabilityException> {
setUnhandledExceptionHook { _ -> println("wrong") }
setUnhandledExceptionHook { _ -> println(wrong) }
}
val x = 42