Minor. Add some new test cases for suspend function type inside suspend function type.
This commit is contained in:
Vendored
+4
-1
@@ -11,4 +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 = SuspendFunction0<Unit>
|
||||
typealias Test8 = SuspendFunction0<Unit>
|
||||
typealias Test9 = suspend (() -> Unit) -> Unit
|
||||
typealias Test10 = suspend (<!UNSUPPORTED!>suspend<!> () -> Unit) -> Unit
|
||||
typealias Test11 = suspend () -> (suspend () -> Unit)
|
||||
Vendored
+3
@@ -8,6 +8,8 @@ public interface SAM {
|
||||
}
|
||||
public typealias Action = () -> kotlin.Unit
|
||||
public typealias Test1 = suspend () -> kotlin.Unit
|
||||
public typealias Test10 = suspend (() -> kotlin.Unit) -> kotlin.Unit
|
||||
public typealias Test11 = suspend () -> suspend () -> kotlin.Unit
|
||||
public typealias Test2 = suspend kotlin.Int.(kotlin.String) -> kotlin.Unit
|
||||
public typealias Test3 = () -> kotlin.Unit
|
||||
public typealias Test4 = Action
|
||||
@@ -15,3 +17,4 @@ public typealias Test5 = kotlin.collections.List<suspend () -> kotlin.Unit>
|
||||
public typealias Test6 = kotlin.collections.List<() -> kotlin.Unit>
|
||||
public typealias Test7 = SAM
|
||||
public typealias Test8 = suspend () -> kotlin.Unit
|
||||
public typealias Test9 = suspend (() -> kotlin.Unit) -> kotlin.Unit
|
||||
|
||||
Reference in New Issue
Block a user