Introduce basic suspend conversion in FE
#KT-15917 In Progress
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
// !LANGUAGE: +SuspendConversion
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
|
||||
fun foo(f: () -> String, g: suspend () -> String, h: suspend () -> String) {}
|
||||
|
||||
fun test(f: () -> String, g: suspend () -> String) {
|
||||
<!INAPPLICABLE_CANDIDATE!>foo<!>(f, f, f)
|
||||
<!INAPPLICABLE_CANDIDATE!>foo<!>(f, { "str" }, f)
|
||||
<!INAPPLICABLE_CANDIDATE!>foo<!>(f, f, g)
|
||||
foo(f, g, g)
|
||||
}
|
||||
Reference in New Issue
Block a user