[JVM IR] Do not insert Nothing handling in JvmStatic wrapper.
Fixes KT-46568.
This commit is contained in:
committed by
Alexander Udalov
parent
3532ce7fbc
commit
3db5ba98ad
@@ -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"
|
||||
}
|
||||
Reference in New Issue
Block a user