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
@@ -15,7 +15,7 @@ interface IFoo {
fun test() {
val foo : Foo = Foo2()
foo as IFoo
foo.<!AMBIGUITY!>bar<!>() // Should be resolved to Foo#bar
foo.bar() // Should be resolved to Foo#bar
}
interface IFoo2 {
@@ -24,5 +24,5 @@ interface IFoo2 {
fun test2(foo: Foo) {
foo as IFoo2
foo.<!AMBIGUITY!>bar<!>() // should be ambiguity
}
foo.bar() // should be ambiguity
}