Relax rules about inferring to Nothing for special calls
#KT-37388 Fixed #KT-38427 Fixed #KT-39953 Fixed #KT-38899 Fixed
This commit is contained in:
@@ -6,13 +6,13 @@ class ExcA : Exception()
|
||||
class ExcB : Exception()
|
||||
|
||||
fun test2() {
|
||||
val s: String? = <!NI;TYPE_MISMATCH!>try {
|
||||
val s: String? = try {
|
||||
""
|
||||
}
|
||||
catch (e: ExcA) {
|
||||
null
|
||||
}
|
||||
catch (e: ExcB) {
|
||||
catch (e: ExcB) <!NI;TYPE_MISMATCH!>{
|
||||
<!OI;CONSTANT_EXPECTED_TYPE_MISMATCH!>10<!>
|
||||
}<!>
|
||||
s<!UNSAFE_CALL!>.<!>length
|
||||
|
||||
Reference in New Issue
Block a user