FIR: Fix scope intersection types

Otherwise overload resolution ambiguity is reported in the test
This commit is contained in:
Denis Zharkov
2020-01-29 17:35:47 +03:00
parent d28e1f156a
commit 47ecaa5b06
24 changed files with 114 additions and 61 deletions
+3 -3
View File
@@ -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
}
}