[FIR] KT-55181: Ensure throw argument is Throwable

`TYPE_MISMATCH` in `throwJLException.fir.kt` appeared,
because in `throw Exn` the type of `Exn` is implicit Unit.
This is red code anyway.

^KT-55181 Fixed

Merge-request: KT-MR-8292
Merged-by: Nikolay Lunyak <Nikolay.Lunyak@jetbrains.com>
This commit is contained in:
Nikolay Lunyak
2023-01-16 17:24:22 +00:00
committed by Space Team
parent 842ad56266
commit c3b871652f
18 changed files with 93 additions and 27 deletions
+5
View File
@@ -0,0 +1,5 @@
// FIR_IDENTICAL
fun main() {
throw <!TYPE_MISMATCH!>"str"<!>
}