FIR: take lower priority into account during references EagerResolve

#KT-48158 Fixed
This commit is contained in:
Mikhail Glukhikh
2021-08-11 18:36:30 +03:00
parent a21d281c19
commit 4e4d36f85a
3 changed files with 15 additions and 7 deletions
@@ -20,6 +20,6 @@ public interface Executor {
fun f(): String = "test"
class A {
fun schedule1(e: Executor): Future<String> = <!RETURN_TYPE_MISMATCH, TYPE_MISMATCH!>e.submit(::f)<!>
fun schedule1(e: Executor): Future<String> = e.submit(::f)
fun schedule2(e: Executor): Future<String> = <!RETURN_TYPE_MISMATCH, TYPE_MISMATCH!>e.submit { f() }<!>
}