From b7b5fd75b8e12980c99f727ecb57509d58356915 Mon Sep 17 00:00:00 2001 From: Ilmir Usmanov Date: Tue, 21 Aug 2018 19:23:44 +0300 Subject: [PATCH] Minor. Fix tests --- .../testData/codegen/box/coroutines/reflect/callSuspend.kt | 3 +++ .../testData/codegen/box/coroutines/reflect/callSuspendBy.kt | 3 +++ .../testData/codegen/box/coroutines/reflect/isSuspend12.kt | 3 +++ .../testData/codegen/box/reflection/modifiers/functions.kt | 1 - .../reference-public-api/kotlin-reflect.txt | 2 ++ .../reference-public-api/kotlin-runtime.txt | 2 ++ .../reference-public-api/kotlin-stdlib-runtime-merged.txt | 2 ++ 7 files changed, 15 insertions(+), 1 deletion(-) diff --git a/compiler/testData/codegen/box/coroutines/reflect/callSuspend.kt b/compiler/testData/codegen/box/coroutines/reflect/callSuspend.kt index ef928adf75d..dedb3fa3788 100644 --- a/compiler/testData/codegen/box/coroutines/reflect/callSuspend.kt +++ b/compiler/testData/codegen/box/coroutines/reflect/callSuspend.kt @@ -1,6 +1,9 @@ // !LANGUAGE: +ReleaseCoroutines // WITH_COROUTINES // WITH_REFLECT +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS +// IGNORE_BACKEND: JVM_IR import helpers.* import kotlin.coroutines.* diff --git a/compiler/testData/codegen/box/coroutines/reflect/callSuspendBy.kt b/compiler/testData/codegen/box/coroutines/reflect/callSuspendBy.kt index 90cf4b498f1..361c3f35481 100644 --- a/compiler/testData/codegen/box/coroutines/reflect/callSuspendBy.kt +++ b/compiler/testData/codegen/box/coroutines/reflect/callSuspendBy.kt @@ -1,6 +1,9 @@ // !LANGUAGE: +ReleaseCoroutines // WITH_COROUTINES // WITH_REFLECT +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS +// IGNORE_BACKEND: JVM_IR import helpers.* import kotlin.coroutines.* diff --git a/compiler/testData/codegen/box/coroutines/reflect/isSuspend12.kt b/compiler/testData/codegen/box/coroutines/reflect/isSuspend12.kt index 3fdb775757a..eae886cfd8c 100644 --- a/compiler/testData/codegen/box/coroutines/reflect/isSuspend12.kt +++ b/compiler/testData/codegen/box/coroutines/reflect/isSuspend12.kt @@ -2,6 +2,9 @@ // WITH_COROUTINES // WITH_REFLECT +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS + import helpers.* import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/reflection/modifiers/functions.kt b/compiler/testData/codegen/box/reflection/modifiers/functions.kt index 699f2ae0436..16d9e7a5411 100644 --- a/compiler/testData/codegen/box/reflection/modifiers/functions.kt +++ b/compiler/testData/codegen/box/reflection/modifiers/functions.kt @@ -9,7 +9,6 @@ import kotlin.test.assertTrue import kotlin.test.assertFalse -import kotlin.reflect.full.isSuspend inline fun inline() {} class External { external fun external() } diff --git a/libraries/tools/binary-compatibility-validator/reference-public-api/kotlin-reflect.txt b/libraries/tools/binary-compatibility-validator/reference-public-api/kotlin-reflect.txt index c5365b4b7d1..cac1d358b55 100644 --- a/libraries/tools/binary-compatibility-validator/reference-public-api/kotlin-reflect.txt +++ b/libraries/tools/binary-compatibility-validator/reference-public-api/kotlin-reflect.txt @@ -7,6 +7,8 @@ public final class kotlin/reflect/full/IllegalPropertyDelegateAccessException : } public final class kotlin/reflect/full/KCallables { + public static final fun callSuspend (Lkotlin/reflect/KCallable;[Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static final fun callSuspendBy (Lkotlin/reflect/KCallable;Ljava/util/Map;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static final fun findParameterByName (Lkotlin/reflect/KCallable;Ljava/lang/String;)Lkotlin/reflect/KParameter; public static final fun getExtensionReceiverParameter (Lkotlin/reflect/KCallable;)Lkotlin/reflect/KParameter; public static final fun getInstanceParameter (Lkotlin/reflect/KCallable;)Lkotlin/reflect/KParameter; diff --git a/libraries/tools/binary-compatibility-validator/reference-public-api/kotlin-runtime.txt b/libraries/tools/binary-compatibility-validator/reference-public-api/kotlin-runtime.txt index 83a47f2d03f..f20fb0bf04e 100644 --- a/libraries/tools/binary-compatibility-validator/reference-public-api/kotlin-runtime.txt +++ b/libraries/tools/binary-compatibility-validator/reference-public-api/kotlin-runtime.txt @@ -418,6 +418,7 @@ public abstract class kotlin/jvm/internal/CallableReference : java/io/Serializab public fun isAbstract ()Z public fun isFinal ()Z public fun isOpen ()Z + public fun isSuspend ()Z } public final class kotlin/jvm/internal/CharCompanionObject { @@ -1165,6 +1166,7 @@ public abstract interface class kotlin/reflect/KCallable : kotlin/reflect/KAnnot public abstract fun isAbstract ()Z public abstract fun isFinal ()Z public abstract fun isOpen ()Z + public abstract fun isSuspend ()Z } public abstract interface class kotlin/reflect/KClass : kotlin/reflect/KAnnotatedElement, kotlin/reflect/KClassifier, kotlin/reflect/KDeclarationContainer { diff --git a/libraries/tools/binary-compatibility-validator/reference-public-api/kotlin-stdlib-runtime-merged.txt b/libraries/tools/binary-compatibility-validator/reference-public-api/kotlin-stdlib-runtime-merged.txt index 1bb24a0de63..b0c5378a08a 100644 --- a/libraries/tools/binary-compatibility-validator/reference-public-api/kotlin-stdlib-runtime-merged.txt +++ b/libraries/tools/binary-compatibility-validator/reference-public-api/kotlin-stdlib-runtime-merged.txt @@ -3119,6 +3119,7 @@ public abstract class kotlin/jvm/internal/CallableReference : java/io/Serializab public fun isAbstract ()Z public fun isFinal ()Z public fun isOpen ()Z + public fun isSuspend ()Z } public final class kotlin/jvm/internal/CharCompanionObject { @@ -4147,6 +4148,7 @@ public abstract interface class kotlin/reflect/KCallable : kotlin/reflect/KAnnot public abstract fun isAbstract ()Z public abstract fun isFinal ()Z public abstract fun isOpen ()Z + public abstract fun isSuspend ()Z } public abstract interface class kotlin/reflect/KClass : kotlin/reflect/KAnnotatedElement, kotlin/reflect/KClassifier, kotlin/reflect/KDeclarationContainer {