[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:
committed by
Space Team
parent
842ad56266
commit
c3b871652f
+6
@@ -501,6 +501,12 @@ public class DiagnosisCompilerTestFE10TestdataTestGenerated extends AbstractDiag
|
||||
runTest("compiler/testData/diagnostics/tests/kt54587_2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt55181.kt")
|
||||
public void testKt55181() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/kt55181.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt55733.kt")
|
||||
public void testKt55733() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user