[FIR] Perform more accurate pre-check of candidate receiver type

This commit is contained in:
Mikhail Glukhikh
2020-12-29 13:32:22 +03:00
parent 4e4293b609
commit 0c0dbd6245
12 changed files with 54 additions and 60 deletions
@@ -1 +1 @@
val foo = <!INAPPLICABLE_CANDIDATE!>UInt<!>()
val foo = <!HIDDEN!>UInt<!>()
@@ -21,7 +21,7 @@ inline fun test(crossinline c: () -> Unit) {
}
}
val l = { c() }
c.<!UNRESOLVED_REFERENCE!>startCoroutine<!>(EmptyContinuation)
c.startCoroutine(EmptyContinuation)
}
suspend fun calculate() = "OK"
@@ -20,7 +20,7 @@ inline fun test(noinline c: () -> Unit) {
}
}
val l = { c() }
c.<!UNRESOLVED_REFERENCE!>startCoroutine<!>(EmptyContinuation)
c.startCoroutine(EmptyContinuation)
}
suspend fun calculate() = "OK"
@@ -21,7 +21,7 @@ inline fun test(c: () -> Unit) {
}
}
val l = { c() }
c.<!UNRESOLVED_REFERENCE!>startCoroutine<!>(EmptyContinuation)
c.startCoroutine(EmptyContinuation)
}
fun builder(c: suspend () -> Unit) {
@@ -20,7 +20,7 @@ suspend inline fun test(crossinline c: () -> Unit) {
}
}
val l = { c() }
c.<!UNRESOLVED_REFERENCE!>startCoroutine<!>(EmptyContinuation)
c.startCoroutine(EmptyContinuation)
}
fun builder(c: suspend () -> Unit) {
@@ -20,7 +20,7 @@ suspend inline fun test(noinline c: () -> Unit) {
}
}
val l = { c() }
c.<!UNRESOLVED_REFERENCE!>startCoroutine<!>(EmptyContinuation)
c.startCoroutine(EmptyContinuation)
}
fun builder(c: suspend () -> Unit) {
@@ -20,7 +20,7 @@ suspend inline fun test(c: () -> Unit) {
}
}
val l = { c() }
c.<!UNRESOLVED_REFERENCE!>startCoroutine<!>(EmptyContinuation)
c.startCoroutine(EmptyContinuation)
}
suspend fun calculate() = "OK"