Files
kotlin-fork/compiler/testData/diagnostics/tests/incompleteCode/incompleteTryCatchBlock.kt
T
Mikhail Zarechenskiy 515e666733 [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
2019-07-01 12:59:37 +03:00

14 lines
213 B
Kotlin
Vendored

fun test1() {
try {
} catch (<!SYNTAX!><!>)<!SYNTAX!><!>
}
fun test2() {
try { }<!SYNTAX!><!>
}
fun test3() {
try {
} catch (<!SYNTAX!><!>{}<!SYNTAX!>)<!> <!UNUSED_LAMBDA_EXPRESSION!>{}<!>
}