Fix compatibility resolve for references with multiple outer candidates

#KT-39533 Fixed
This commit is contained in:
Mikhail Zarechenskiy
2020-06-18 16:24:09 +03:00
parent 58183b774d
commit 9c8e979308
15 changed files with 280 additions and 4 deletions
@@ -14,7 +14,7 @@ fun test1(s: SubInt, sWrong: SubIntWrong) {
foo(<!TYPE_MISMATCH!>a<!>)
a <!CAST_NEVER_SUCCEEDS!>as<!> (Int, String) -> String
foo(a)
foo(<!DEBUG_INFO_SMARTCAST!>a<!>)
}
fun <T> test2(x: T) where T : (Int, String) -> Int, T : (Double) -> Int {