FIR: discriminate candidates with suspend conversion

This commit is contained in:
Jinseong Jeon
2020-09-09 12:54:50 -07:00
committed by Mikhail Glukhikh
parent 6de8ba40c1
commit 5fdd06676f
6 changed files with 30 additions and 8 deletions
@@ -15,5 +15,5 @@ fun test4(): suspend () -> Unit = useSuspendFn {}
fun test5() = useSuspendFn {}
fun test5(sfn: suspend () -> Unit) = ambiguous(sfn)
fun test6(fn: () -> Unit) = <!AMBIGUITY!>ambiguous<!>(fn)
fun test6(fn: () -> Unit) = ambiguous(fn)
fun test7(): () -> Unit = <!AMBIGUITY!>ambiguous<!> {}