[NI] Fix exception on incomplete try/catch block
There was an inconsistency on creating PSI call and corresponding descriptor. See variable `catchBlocks` from visitor, it's created only if PSI elements are not null, but for descriptor parameters there wasn't such check #KT-32134 Fixed #EA-139748 Fixed
This commit is contained in:
@@ -9304,6 +9304,11 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
|
||||
runTest("compiler/testData/diagnostics/tests/incompleteCode/incompleteEquals.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("incompleteTryCatchBlock.kt")
|
||||
public void testIncompleteTryCatchBlock() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/incompleteCode/incompleteTryCatchBlock.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt1955.kt")
|
||||
public void testKt1955() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/incompleteCode/kt1955.kt");
|
||||
|
||||
Reference in New Issue
Block a user