FIR: discriminate candidates with suspend conversion
This commit is contained in:
committed by
Mikhail Glukhikh
parent
6de8ba40c1
commit
5fdd06676f
+1
-1
@@ -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<!> {}
|
||||
Reference in New Issue
Block a user