NI: resolve try catch as synthetic function call (#KT-25435 fixed)

This commit is contained in:
Dmitriy Novozhilov
2019-01-31 14:00:18 +03:00
parent 4e64b07727
commit a236ad5686
8 changed files with 224 additions and 44 deletions
@@ -14,15 +14,15 @@ fun foo() : Int {
}
fun bar() : Int =
try {
<!NI;TYPE_MISMATCH, TYPE_MISMATCH!>doSmth()<!>
<!NI;TYPE_MISMATCH, NI;TYPE_MISMATCH!>try {
<!OI;TYPE_MISMATCH!>doSmth()<!>
}
catch (e: Exception) {
<!TYPE_MISMATCH!>""<!>
<!OI;TYPE_MISMATCH!>""<!>
}
finally {
<!UNUSED_EXPRESSION!>""<!>
}
}<!>
fun doSmth() {}