forked from JetBrains/kotlin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
115 additions
and
141 deletions.
There are no files selected for viewing
22 changes: 17 additions & 5 deletions
22
compiler/testData/builtin-classes/default/kotlin-coroutines.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,24 @@ | ||
package-fragment kotlin.coroutines | ||
|
||
@kotlin.SinceKotlin(version = "1.1") public inline suspend fun </*0*/ T> suspendWithCurrentContinuation(/*0*/ body: (kotlin.coroutines.Continuation<T>) -> kotlin.Any?): T | ||
@kotlin.PublishedApi internal inline suspend fun </*0*/ T> suspendWithCurrentContinuation(/*0*/ body: (kotlin.coroutines.Continuation<T>) -> kotlin.Any?): T | ||
|
||
@kotlin.SinceKotlin(version = "1.1") public interface Continuation</*0*/ in P> { | ||
public abstract fun resume(/*0*/ data: P): kotlin.Unit | ||
@kotlin.SinceKotlin(version = "1.1") public interface Continuation</*0*/ in T> { | ||
public abstract fun resume(/*0*/ value: T): kotlin.Unit | ||
public abstract fun resumeWithException(/*0*/ exception: kotlin.Throwable): kotlin.Unit | ||
} | ||
|
||
@kotlin.SinceKotlin(version = "1.1") public object Suspend { | ||
/*primary*/ private constructor Suspend() | ||
@kotlin.SinceKotlin(version = "1.1") public interface ContinuationDispatcher { | ||
public open fun </*0*/ T> dispatchResume(/*0*/ value: T, /*1*/ continuation: kotlin.coroutines.Continuation<T>): kotlin.Boolean | ||
public open fun dispatchResumeWithException(/*0*/ exception: kotlin.Throwable, /*1*/ continuation: kotlin.coroutines.Continuation<*>): kotlin.Boolean | ||
} | ||
|
||
@kotlin.SinceKotlin(version = "1.1") public object CoroutineIntrinsics { | ||
/*primary*/ private constructor CoroutineIntrinsics() | ||
@kotlin.SinceKotlin(version = "1.1") public final val SUSPENDED: kotlin.Any | ||
public final fun <get-SUSPENDED>(): kotlin.Any | ||
public final inline suspend fun </*0*/ T> suspendCoroutineOrReturn(/*0*/ block: (kotlin.coroutines.Continuation<T>) -> kotlin.Any?): T | ||
} | ||
|
||
@kotlin.SinceKotlin(version = "1.1") @kotlin.annotation.Target(allowedTargets = {AnnotationTarget.CLASS}) @kotlin.annotation.Retention(value = AnnotationRetention.BINARY) public final annotation class RestrictsSuspendExtensions : kotlin.Annotation { | ||
/*primary*/ public constructor RestrictsSuspendExtensions() | ||
} |
27 changes: 0 additions & 27 deletions
27
compiler/testData/codegen/box/reflection/modifiers/parameters.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 10 additions & 3 deletions
13
compiler/testData/compileKotlinAgainstKotlin/coroutinesBinary.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 3 additions & 4 deletions
7
compiler/testData/loadJava/compiledKotlin/type/SuspendFunction.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
package test | ||
|
||
public fun test1(): suspend () -> kotlin.Unit | ||
public fun test2(): suspend (kotlin.Int, kotlin.String) -> kotlin.Int | ||
public fun test3(): suspend kotlin.Int.(kotlin.String) -> kotlin.Int | ||
public fun test4(): kotlin.collections.List<suspend () -> kotlin.Unit> | ||
public fun test5(): suspend (suspend () -> kotlin.Unit) -> kotlin.Unit | ||
public fun test2(): suspend kotlin.Int.() -> kotlin.Int | ||
public fun test3(): kotlin.collections.List<suspend () -> kotlin.Unit> | ||
public fun test4(): suspend () -> suspend () -> kotlin.Unit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.