[FIR] Rewind DFA after call arguments for correct receiver smartcasting
^KT-63709 Fixed
This commit is contained in:
+14
@@ -0,0 +1,14 @@
|
||||
// SKIP_TXT
|
||||
// ISSUE: KT-63709
|
||||
|
||||
operator fun Int.invoke(unused: Int) {}
|
||||
|
||||
fun test1(a: Int?) {
|
||||
<!UNSAFE_CALL!>a<!>(a!!)
|
||||
}
|
||||
|
||||
fun test2(a: Int?) {
|
||||
with (a) {
|
||||
<!UNSAFE_CALL!>invoke<!>(this!!)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user