FIR: Fix scope intersection types
Otherwise overload resolution ambiguity is reported in the test
This commit is contained in:
+3
-3
@@ -23,9 +23,9 @@ class WrongIncDec() {
|
||||
fun testWrongIncDec() {
|
||||
var x = WrongIncDec()
|
||||
x++
|
||||
<!AMBIGUITY!>++<!>x
|
||||
++x
|
||||
x--
|
||||
<!AMBIGUITY!>--<!>x
|
||||
--x
|
||||
}
|
||||
|
||||
class UnitIncDec() {
|
||||
@@ -43,4 +43,4 @@ fun testUnitIncDec() {
|
||||
x = x--
|
||||
x = ++x
|
||||
x = --x
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user