[JVM IR] Do not insert Nothing handling in JvmStatic wrapper.

Fixes KT-46568.
This commit is contained in:
Mads Ager
2021-05-10 13:07:34 +02:00
committed by Alexander Udalov
parent 3532ce7fbc
commit 3db5ba98ad
10 changed files with 62 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
// TARGET_BACKEND: JVM
// WITH_RUNTIME
abstract class Foo {
companion object {
@JvmStatic
fun bar(): Nothing = TODO()
}
}
fun box(): String {
try {
Foo.bar()
} catch (e: Throwable) {
return "OK"
}
return "FAIL"
}