FIR: Fix scope intersection types
Otherwise overload resolution ambiguity is reported in the test
This commit is contained in:
+3
-3
@@ -13,8 +13,8 @@ interface B: A {
|
||||
|
||||
fun test(a: A) {
|
||||
if (a is B && a is C) {
|
||||
a.<!AMBIGUITY!>foo<!> = ""
|
||||
a.<!AMBIGUITY!>foo<!> = null
|
||||
a.<!AMBIGUITY!>foo<!>
|
||||
a.foo = ""
|
||||
a.foo = null
|
||||
a.foo
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user