Move SuspendFunction{N} interfaces to kotlin.coroutines package
#KT-25824: Fixed
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
// !LANGUAGE: +Coroutines
|
||||
// !DIAGNOSTICS: -USELESS_IS_CHECK
|
||||
// SKIP_TXT
|
||||
|
||||
fun test() {
|
||||
suspend {} is <!UNRESOLVED_REFERENCE!>SuspendFunction0<!><*>
|
||||
suspend {} is kotlin.coroutines.SuspendFunction0<*>
|
||||
}
|
||||
+1
-1
@@ -11,7 +11,7 @@ typealias Test4 = <!WRONG_MODIFIER_TARGET!>suspend<!> Action
|
||||
typealias Test5 = List<suspend () -> Unit>
|
||||
typealias Test6 = <!WRONG_MODIFIER_TARGET!>suspend<!> List<() -> Unit>
|
||||
typealias Test7 = <!WRONG_MODIFIER_TARGET!>suspend<!> SAM
|
||||
typealias Test8 = <!WRONG_MODIFIER_TARGET!>suspend<!> SuspendFunction0<Unit>
|
||||
typealias Test8 = <!WRONG_MODIFIER_TARGET!>suspend<!> kotlin.coroutines.SuspendFunction0<Unit>
|
||||
typealias Test9 = suspend (() -> Unit) -> Unit
|
||||
typealias Test10 = suspend (suspend () -> Unit) -> Unit
|
||||
typealias Test11 = suspend () -> (suspend () -> Unit)
|
||||
|
||||
Vendored
+3
-3
@@ -1,4 +1,4 @@
|
||||
// JAVAC_SKIP
|
||||
typealias Test1 = SuspendFunction0<Unit>
|
||||
typealias Test2 = kotlin.SuspendFunction0<Unit>
|
||||
typealias Test3 = kotlin.coroutines.<!UNRESOLVED_REFERENCE!>SuspendFunction0<!><Unit>
|
||||
typealias Test1 = <!UNRESOLVED_REFERENCE!>SuspendFunction0<!><Unit>
|
||||
typealias Test2 = kotlin.<!UNRESOLVED_REFERENCE!>SuspendFunction0<!><Unit>
|
||||
typealias Test3 = kotlin.coroutines.SuspendFunction0<Unit>
|
||||
Vendored
+3
-3
@@ -1,5 +1,5 @@
|
||||
package
|
||||
|
||||
public typealias Test1 = suspend () -> kotlin.Unit
|
||||
public typealias Test2 = suspend () -> kotlin.Unit
|
||||
public typealias Test3 = [ERROR : kotlin.coroutines.SuspendFunction0<Unit>]<kotlin.Unit>
|
||||
public typealias Test1 = [ERROR : SuspendFunction0<Unit>]<kotlin.Unit>
|
||||
public typealias Test2 = [ERROR : kotlin.SuspendFunction0<Unit>]<kotlin.Unit>
|
||||
public typealias Test3 = suspend () -> kotlin.Unit
|
||||
|
||||
Reference in New Issue
Block a user