IR: bugfix in KotlinNothingValueExceptionLowering

This commit is contained in:
Georgy Bronnikov
2020-04-21 16:25:47 +03:00
parent 1fb325d56e
commit 3bb32941a0
8 changed files with 38 additions and 2 deletions
@@ -0,0 +1,6 @@
fun nestedNothing(s: String) =
"" + if (s == "OK") s else barf()
fun barf(): Nothing = throw NullPointerException()
fun box() = nestedNothing("OK")