[FIR] Handle fully qualified expressions separately in tower resolver
This commit is contained in:
+1
-1
@@ -12,6 +12,6 @@ inline fun myRun(block: () -> Unit): Unit {
|
||||
}
|
||||
|
||||
fun test() {
|
||||
myRun { throw java.lang.<!UNRESOLVED_REFERENCE!>IllegalArgumentException<!>() }
|
||||
myRun { throw java.lang.IllegalArgumentException() }
|
||||
val x: Int = 42
|
||||
}
|
||||
+2
-2
@@ -22,7 +22,7 @@ fun throwIfNotCalled() {
|
||||
return@outer
|
||||
}
|
||||
}
|
||||
throw java.lang.<!UNRESOLVED_REFERENCE!>IllegalArgumentException<!>()
|
||||
throw java.lang.IllegalArgumentException()
|
||||
}
|
||||
// x *is* initialized here, because if myRun was never called -> exception
|
||||
// were thrown and control flow wouldn't be here
|
||||
@@ -39,7 +39,7 @@ fun catchThrowIfNotCalled() {
|
||||
return@outer
|
||||
}
|
||||
}
|
||||
throw java.lang.<!UNRESOLVED_REFERENCE!>IllegalArgumentException<!>()
|
||||
throw java.lang.IllegalArgumentException()
|
||||
}
|
||||
} catch (ignored: java.lang.IllegalArgumentException) { }
|
||||
|
||||
|
||||
+1
-1
@@ -12,6 +12,6 @@ inline fun <T> myRun(block: () -> T): T {
|
||||
}
|
||||
|
||||
fun throwInLambda(): Int {
|
||||
val x = myRun { throw java.lang.<!UNRESOLVED_REFERENCE!>IllegalArgumentException<!>(); 42 }
|
||||
val x = myRun { throw java.lang.IllegalArgumentException(); 42 }
|
||||
return x
|
||||
}
|
||||
Reference in New Issue
Block a user