diff --git a/compiler/testData/codegen/box/delegatedProperty/privateSetterKPropertyIsNotMutable.kt b/compiler/testData/codegen/box/delegatedProperty/privateSetterKPropertyIsNotMutable.kt index 2808cf71083..346946bfa4d 100644 --- a/compiler/testData/codegen/box/delegatedProperty/privateSetterKPropertyIsNotMutable.kt +++ b/compiler/testData/codegen/box/delegatedProperty/privateSetterKPropertyIsNotMutable.kt @@ -1,7 +1,5 @@ // IGNORE_BACKEND: JVM_IR -// IGNORE_BACKEND: JS_IR -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS, NATIVE +// TARGET_BACKEND: JVM // WITH_REFLECT @@ -9,7 +7,7 @@ import kotlin.reflect.KProperty import kotlin.reflect.KMutableProperty import kotlin.reflect.KMutableProperty1 import kotlin.reflect.full.* -import kotlin.reflect.jvm.* +import kotlin.reflect.jvm.isAccessible object Delegate { operator fun getValue(thiz: My, property: KProperty<*>): String { diff --git a/compiler/testData/codegen/box/hashPMap/empty.kt b/compiler/testData/codegen/box/hashPMap/empty.kt index 6d2ebed4484..30be641c252 100644 --- a/compiler/testData/codegen/box/hashPMap/empty.kt +++ b/compiler/testData/codegen/box/hashPMap/empty.kt @@ -1,6 +1,4 @@ -// IGNORE_BACKEND: JS_IR -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS, NATIVE +// TARGET_BACKEND: JVM // WITH_REFLECT diff --git a/compiler/testData/codegen/box/hashPMap/rewriteWithDifferent.kt b/compiler/testData/codegen/box/hashPMap/rewriteWithDifferent.kt index fd67ab56577..26b01a8a3c0 100644 --- a/compiler/testData/codegen/box/hashPMap/rewriteWithDifferent.kt +++ b/compiler/testData/codegen/box/hashPMap/rewriteWithDifferent.kt @@ -1,6 +1,4 @@ -// IGNORE_BACKEND: JS_IR -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS, NATIVE +// TARGET_BACKEND: JVM // WITH_REFLECT diff --git a/compiler/testData/codegen/box/hashPMap/rewriteWithEqual.kt b/compiler/testData/codegen/box/hashPMap/rewriteWithEqual.kt index 6297e3d69da..0e3bcf42734 100644 --- a/compiler/testData/codegen/box/hashPMap/rewriteWithEqual.kt +++ b/compiler/testData/codegen/box/hashPMap/rewriteWithEqual.kt @@ -1,6 +1,4 @@ -// IGNORE_BACKEND: JS_IR -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS, NATIVE +// TARGET_BACKEND: JVM // WITH_REFLECT diff --git a/compiler/testData/codegen/box/hashPMap/simplePlusGet.kt b/compiler/testData/codegen/box/hashPMap/simplePlusGet.kt index 158704d9e4f..6c3c67f00b5 100644 --- a/compiler/testData/codegen/box/hashPMap/simplePlusGet.kt +++ b/compiler/testData/codegen/box/hashPMap/simplePlusGet.kt @@ -1,6 +1,4 @@ -// IGNORE_BACKEND: JS_IR -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS, NATIVE +// TARGET_BACKEND: JVM // WITH_REFLECT diff --git a/compiler/testData/codegen/box/hashPMap/simplePlusMinus.kt b/compiler/testData/codegen/box/hashPMap/simplePlusMinus.kt index 88fecdc4898..912934e1b0f 100644 --- a/compiler/testData/codegen/box/hashPMap/simplePlusMinus.kt +++ b/compiler/testData/codegen/box/hashPMap/simplePlusMinus.kt @@ -1,6 +1,4 @@ -// IGNORE_BACKEND: JS_IR -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS, NATIVE +// TARGET_BACKEND: JVM // WITH_REFLECT diff --git a/compiler/testData/codegen/box/inlineClasses/functionNameMangling/genericSignatureOfFunctionWithMangledName.kt b/compiler/testData/codegen/box/inlineClasses/functionNameMangling/genericSignatureOfFunctionWithMangledName.kt index 1a2d4c48b36..9a916cef32b 100644 --- a/compiler/testData/codegen/box/inlineClasses/functionNameMangling/genericSignatureOfFunctionWithMangledName.kt +++ b/compiler/testData/codegen/box/inlineClasses/functionNameMangling/genericSignatureOfFunctionWithMangledName.kt @@ -1,5 +1,6 @@ // !LANGUAGE: +InlineClasses -// IGNORE_BACKEND: JVM_IR, JS, JS_IR, NATIVE +// IGNORE_BACKEND: JVM_IR +// TARGET_BACKEND: JVM // WITH_REFLECT import kotlin.reflect.KFunction diff --git a/compiler/testData/codegen/box/jvmField/topLevelFieldReflection.kt b/compiler/testData/codegen/box/jvmField/topLevelFieldReflection.kt index 3f60c47a868..f1a5d0a2e00 100644 --- a/compiler/testData/codegen/box/jvmField/topLevelFieldReflection.kt +++ b/compiler/testData/codegen/box/jvmField/topLevelFieldReflection.kt @@ -1,7 +1,5 @@ // IGNORE_BACKEND: JVM_IR -// IGNORE_BACKEND: JS_IR -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS, NATIVE +// TARGET_BACKEND: JVM // WITH_REFLECT diff --git a/compiler/testData/codegen/box/reflection/call/cannotCallEnumConstructor.kt b/compiler/testData/codegen/box/reflection/call/cannotCallEnumConstructor.kt index 530bf1b5936..042e7c5cbac 100644 --- a/compiler/testData/codegen/box/reflection/call/cannotCallEnumConstructor.kt +++ b/compiler/testData/codegen/box/reflection/call/cannotCallEnumConstructor.kt @@ -1,10 +1,8 @@ -// IGNORE_BACKEND: JS_IR -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS, NATIVE +// TARGET_BACKEND: JVM // WITH_REFLECT -import kotlin.reflect.jvm.* +import kotlin.reflect.jvm.isAccessible enum class E diff --git a/compiler/testData/codegen/box/reflection/call/inlineClasses/fieldAccessors.kt b/compiler/testData/codegen/box/reflection/call/inlineClasses/fieldAccessors.kt index 09cbe47c115..2cc780864a7 100644 --- a/compiler/testData/codegen/box/reflection/call/inlineClasses/fieldAccessors.kt +++ b/compiler/testData/codegen/box/reflection/call/inlineClasses/fieldAccessors.kt @@ -1,4 +1,5 @@ -// IGNORE_BACKEND: JS_IR, JS, NATIVE, JVM_IR +// IGNORE_BACKEND: JVM_IR +// TARGET_BACKEND: JVM // WITH_REFLECT import kotlin.reflect.KCallable diff --git a/compiler/testData/codegen/box/reflection/call/privateProperty.kt b/compiler/testData/codegen/box/reflection/call/privateProperty.kt index 07aa9ed134b..a9a4f82a02d 100644 --- a/compiler/testData/codegen/box/reflection/call/privateProperty.kt +++ b/compiler/testData/codegen/box/reflection/call/privateProperty.kt @@ -1,12 +1,10 @@ -// IGNORE_BACKEND: JS_IR -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS, NATIVE +// TARGET_BACKEND: JVM // WITH_REFLECT import kotlin.reflect.* import kotlin.reflect.full.* -import kotlin.reflect.jvm.* +import kotlin.reflect.jvm.isAccessible import kotlin.test.* class A(private var result: String) diff --git a/compiler/testData/codegen/box/reflection/call/protectedMembers.kt b/compiler/testData/codegen/box/reflection/call/protectedMembers.kt index 0df81a1014e..2ce90787aa7 100644 --- a/compiler/testData/codegen/box/reflection/call/protectedMembers.kt +++ b/compiler/testData/codegen/box/reflection/call/protectedMembers.kt @@ -1,10 +1,9 @@ // IGNORE_BACKEND: JVM_IR -// IGNORE_BACKEND: JS_IR -// IGNORE_BACKEND: JS, NATIVE +// TARGET_BACKEND: JVM // WITH_REFLECT import kotlin.reflect.* -import kotlin.reflect.jvm.* +import kotlin.reflect.jvm.isAccessible import kotlin.test.* abstract class Base { diff --git a/compiler/testData/codegen/box/reflection/callBy/privateMemberFunction.kt b/compiler/testData/codegen/box/reflection/callBy/privateMemberFunction.kt index 5f3294e687c..353746b5975 100644 --- a/compiler/testData/codegen/box/reflection/callBy/privateMemberFunction.kt +++ b/compiler/testData/codegen/box/reflection/callBy/privateMemberFunction.kt @@ -1,7 +1,5 @@ // IGNORE_BACKEND: JVM_IR -// IGNORE_BACKEND: JS_IR -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS, NATIVE +// TARGET_BACKEND: JVM // WITH_REFLECT diff --git a/compiler/testData/codegen/box/reflection/classLiterals/genericArrays.kt b/compiler/testData/codegen/box/reflection/classLiterals/genericArrays.kt index 02e95fd9304..226a0924273 100644 --- a/compiler/testData/codegen/box/reflection/classLiterals/genericArrays.kt +++ b/compiler/testData/codegen/box/reflection/classLiterals/genericArrays.kt @@ -1,6 +1,4 @@ -// IGNORE_BACKEND: JS_IR -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS, NATIVE +// TARGET_BACKEND: JVM // WITH_REFLECT diff --git a/compiler/testData/codegen/box/reflection/classes/jvmNameOfStandardClasses.kt b/compiler/testData/codegen/box/reflection/classes/jvmNameOfStandardClasses.kt index cc724bd6174..302ffeaeeb8 100644 --- a/compiler/testData/codegen/box/reflection/classes/jvmNameOfStandardClasses.kt +++ b/compiler/testData/codegen/box/reflection/classes/jvmNameOfStandardClasses.kt @@ -1,6 +1,4 @@ -// IGNORE_BACKEND: JS_IR -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS, NATIVE +// TARGET_BACKEND: JVM // WITH_REFLECT diff --git a/compiler/testData/codegen/box/reflection/functions/functionFromStdlib.kt b/compiler/testData/codegen/box/reflection/functions/functionFromStdlib.kt index eab6b2f3839..ece9be384e3 100644 --- a/compiler/testData/codegen/box/reflection/functions/functionFromStdlib.kt +++ b/compiler/testData/codegen/box/reflection/functions/functionFromStdlib.kt @@ -1,6 +1,5 @@ // IGNORE_BACKEND: JVM_IR -// IGNORE_BACKEND: JS_IR -// IGNORE_BACKEND: JS, NATIVE +// TARGET_BACKEND: JVM // WITH_REFLECT import kotlin.reflect.KFunction1 diff --git a/compiler/testData/codegen/box/reflection/functions/privateMemberFunction.kt b/compiler/testData/codegen/box/reflection/functions/privateMemberFunction.kt index 2ec8803ca88..3bafea54946 100644 --- a/compiler/testData/codegen/box/reflection/functions/privateMemberFunction.kt +++ b/compiler/testData/codegen/box/reflection/functions/privateMemberFunction.kt @@ -1,12 +1,10 @@ -// IGNORE_BACKEND: JS_IR -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS, NATIVE +// TARGET_BACKEND: JVM // WITH_REFLECT import kotlin.reflect.KFunction import kotlin.reflect.full.* -import kotlin.reflect.jvm.* +import kotlin.reflect.jvm.isAccessible import kotlin.test.assertEquals class A { diff --git a/compiler/testData/codegen/box/reflection/lambdaClasses/parameterNamesAndNullability.kt b/compiler/testData/codegen/box/reflection/lambdaClasses/parameterNamesAndNullability.kt index 51c2689ed62..d5cf505c626 100644 --- a/compiler/testData/codegen/box/reflection/lambdaClasses/parameterNamesAndNullability.kt +++ b/compiler/testData/codegen/box/reflection/lambdaClasses/parameterNamesAndNullability.kt @@ -1,12 +1,10 @@ // IGNORE_BACKEND: JVM_IR -// IGNORE_BACKEND: JS_IR -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS, NATIVE +// TARGET_BACKEND: JVM // WITH_REFLECT -import kotlin.reflect.* -import kotlin.reflect.jvm.* +import kotlin.reflect.KParameter +import kotlin.reflect.jvm.reflect import kotlin.test.assertEquals import kotlin.test.assertNull diff --git a/compiler/testData/codegen/box/reflection/mapping/constructor.kt b/compiler/testData/codegen/box/reflection/mapping/constructor.kt index c13ad773af1..53498d7d497 100644 --- a/compiler/testData/codegen/box/reflection/mapping/constructor.kt +++ b/compiler/testData/codegen/box/reflection/mapping/constructor.kt @@ -1,7 +1,5 @@ // IGNORE_BACKEND: JVM_IR -// IGNORE_BACKEND: JS_IR -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS, NATIVE +// TARGET_BACKEND: JVM // WITH_REFLECT diff --git a/compiler/testData/codegen/box/reflection/mapping/constructorWithInlineClassParameters.kt b/compiler/testData/codegen/box/reflection/mapping/constructorWithInlineClassParameters.kt index 4a95f1d44a7..da2b243f490 100644 --- a/compiler/testData/codegen/box/reflection/mapping/constructorWithInlineClassParameters.kt +++ b/compiler/testData/codegen/box/reflection/mapping/constructorWithInlineClassParameters.kt @@ -1,4 +1,5 @@ -// IGNORE_BACKEND: JVM_IR, JS_IR, JS, NATIVE +// IGNORE_BACKEND: JVM_IR +// TARGET_BACKEND: JVM // WITH_REFLECT import kotlin.reflect.full.primaryConstructor import kotlin.reflect.jvm.javaConstructor diff --git a/compiler/testData/codegen/box/reflection/mapping/fakeOverrides/javaFieldGetterSetter.kt b/compiler/testData/codegen/box/reflection/mapping/fakeOverrides/javaFieldGetterSetter.kt index 9f9ac7f5f65..ae3c3460629 100644 --- a/compiler/testData/codegen/box/reflection/mapping/fakeOverrides/javaFieldGetterSetter.kt +++ b/compiler/testData/codegen/box/reflection/mapping/fakeOverrides/javaFieldGetterSetter.kt @@ -1,7 +1,5 @@ // IGNORE_BACKEND: JVM_IR -// IGNORE_BACKEND: JS_IR -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS, NATIVE +// TARGET_BACKEND: JVM // WITH_REFLECT // KT-8131 Cannot find backing field in ancestor class via reflection diff --git a/compiler/testData/codegen/box/reflection/mapping/fakeOverrides/javaMethod.kt b/compiler/testData/codegen/box/reflection/mapping/fakeOverrides/javaMethod.kt index 9af3783a27e..fc7e3eadbc4 100644 --- a/compiler/testData/codegen/box/reflection/mapping/fakeOverrides/javaMethod.kt +++ b/compiler/testData/codegen/box/reflection/mapping/fakeOverrides/javaMethod.kt @@ -1,6 +1,4 @@ -// IGNORE_BACKEND: JS_IR -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS, NATIVE +// TARGET_BACKEND: JVM // WITH_REFLECT diff --git a/compiler/testData/codegen/box/reflection/mapping/functions.kt b/compiler/testData/codegen/box/reflection/mapping/functions.kt index a8b41c8d968..da4956b1bcb 100644 --- a/compiler/testData/codegen/box/reflection/mapping/functions.kt +++ b/compiler/testData/codegen/box/reflection/mapping/functions.kt @@ -1,7 +1,5 @@ // IGNORE_BACKEND: JVM_IR -// IGNORE_BACKEND: JS_IR -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS, NATIVE +// TARGET_BACKEND: JVM // WITH_REFLECT diff --git a/compiler/testData/codegen/box/reflection/mapping/inlineClassPrimaryVal.kt b/compiler/testData/codegen/box/reflection/mapping/inlineClassPrimaryVal.kt index 4bd08bd2dec..27b18fae463 100644 --- a/compiler/testData/codegen/box/reflection/mapping/inlineClassPrimaryVal.kt +++ b/compiler/testData/codegen/box/reflection/mapping/inlineClassPrimaryVal.kt @@ -1,4 +1,5 @@ -// IGNORE_BACKEND: JVM_IR, JS_IR, JS, NATIVE +// IGNORE_BACKEND: JVM_IR +// TARGET_BACKEND: JVM // WITH_REFLECT import kotlin.reflect.jvm.* diff --git a/compiler/testData/codegen/box/reflection/mapping/inlineReifiedFun.kt b/compiler/testData/codegen/box/reflection/mapping/inlineReifiedFun.kt index 6204d7b22c2..0d4f8944931 100644 --- a/compiler/testData/codegen/box/reflection/mapping/inlineReifiedFun.kt +++ b/compiler/testData/codegen/box/reflection/mapping/inlineReifiedFun.kt @@ -1,6 +1,5 @@ // IGNORE_BACKEND: JVM_IR -// IGNORE_BACKEND: JS_IR -// IGNORE_BACKEND: JS, NATIVE +// TARGET_BACKEND: JVM // WITH_REFLECT import kotlin.reflect.* diff --git a/compiler/testData/codegen/box/reflection/mapping/openSuspendFun.kt b/compiler/testData/codegen/box/reflection/mapping/openSuspendFun.kt index 643dc241cd4..f7a037ed830 100644 --- a/compiler/testData/codegen/box/reflection/mapping/openSuspendFun.kt +++ b/compiler/testData/codegen/box/reflection/mapping/openSuspendFun.kt @@ -1,7 +1,6 @@ -// IGNORE_BACKEND: JVM_IR -// IGNORE_BACKEND: JS_IR // WITH_REFLECT -// IGNORE_BACKEND: JS, NATIVE +// IGNORE_BACKEND: JVM_IR +// TARGET_BACKEND: JVM import kotlin.reflect.full.declaredMemberFunctions import kotlin.reflect.jvm.javaMethod diff --git a/compiler/testData/codegen/box/reflection/mapping/propertyAccessors.kt b/compiler/testData/codegen/box/reflection/mapping/propertyAccessors.kt index 19d344c32e7..e5caa2355fa 100644 --- a/compiler/testData/codegen/box/reflection/mapping/propertyAccessors.kt +++ b/compiler/testData/codegen/box/reflection/mapping/propertyAccessors.kt @@ -1,7 +1,5 @@ // IGNORE_BACKEND: JVM_IR -// IGNORE_BACKEND: JS_IR -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS, NATIVE +// TARGET_BACKEND: JVM // WITH_REFLECT diff --git a/compiler/testData/codegen/box/reflection/mapping/topLevelFunctionOtherFile.kt b/compiler/testData/codegen/box/reflection/mapping/topLevelFunctionOtherFile.kt index baf7fb397b9..0dd80d6a1d1 100644 --- a/compiler/testData/codegen/box/reflection/mapping/topLevelFunctionOtherFile.kt +++ b/compiler/testData/codegen/box/reflection/mapping/topLevelFunctionOtherFile.kt @@ -1,7 +1,5 @@ // IGNORE_BACKEND: JVM_IR -// IGNORE_BACKEND: JS_IR -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS, NATIVE +// TARGET_BACKEND: JVM // WITH_REFLECT // FILE: test.kt diff --git a/compiler/testData/codegen/box/reflection/mapping/types/inlineClassPrimaryVal.kt b/compiler/testData/codegen/box/reflection/mapping/types/inlineClassPrimaryVal.kt index 2f732970b1a..5bf61982289 100644 --- a/compiler/testData/codegen/box/reflection/mapping/types/inlineClassPrimaryVal.kt +++ b/compiler/testData/codegen/box/reflection/mapping/types/inlineClassPrimaryVal.kt @@ -1,4 +1,5 @@ -// IGNORE_BACKEND: JVM_IR, JS_IR, JS, NATIVE +// IGNORE_BACKEND: JVM_IR +// TARGET_BACKEND: JVM // WITH_REFLECT import kotlin.reflect.KCallable diff --git a/compiler/testData/codegen/box/reflection/mapping/types/suspendFun.kt b/compiler/testData/codegen/box/reflection/mapping/types/suspendFun.kt index a691c69925c..ca3a6fda7ed 100644 --- a/compiler/testData/codegen/box/reflection/mapping/types/suspendFun.kt +++ b/compiler/testData/codegen/box/reflection/mapping/types/suspendFun.kt @@ -1,4 +1,5 @@ -// IGNORE_BACKEND: JS, NATIVE, JS_IR, JVM_IR +// IGNORE_BACKEND: JVM_IR +// TARGET_BACKEND: JVM // WITH_REFLECT import kotlin.reflect.jvm.javaType diff --git a/compiler/testData/codegen/box/reflection/mapping/types/withNullability.kt b/compiler/testData/codegen/box/reflection/mapping/types/withNullability.kt index 7dfc4c6bb43..034dca0e73b 100644 --- a/compiler/testData/codegen/box/reflection/mapping/types/withNullability.kt +++ b/compiler/testData/codegen/box/reflection/mapping/types/withNullability.kt @@ -1,7 +1,5 @@ // IGNORE_BACKEND: JVM_IR -// IGNORE_BACKEND: JS_IR -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS, NATIVE +// TARGET_BACKEND: JVM // WITH_REFLECT diff --git a/compiler/testData/codegen/box/reflection/properties/callPrivatePropertyFromGetProperties.kt b/compiler/testData/codegen/box/reflection/properties/callPrivatePropertyFromGetProperties.kt index d26a3828dc4..6d501894e6e 100644 --- a/compiler/testData/codegen/box/reflection/properties/callPrivatePropertyFromGetProperties.kt +++ b/compiler/testData/codegen/box/reflection/properties/callPrivatePropertyFromGetProperties.kt @@ -1,12 +1,10 @@ -// IGNORE_BACKEND: JS_IR -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS, NATIVE +// TARGET_BACKEND: JVM // WITH_REFLECT import kotlin.reflect.KProperty1 import kotlin.reflect.full.* -import kotlin.reflect.jvm.* +import kotlin.reflect.jvm.isAccessible class K(private val value: String) diff --git a/compiler/testData/codegen/box/reflection/properties/getDelegate/booleanPropertyNameStartsWithIs.kt b/compiler/testData/codegen/box/reflection/properties/getDelegate/booleanPropertyNameStartsWithIs.kt index a68c2e79951..54347b3c7bd 100644 --- a/compiler/testData/codegen/box/reflection/properties/getDelegate/booleanPropertyNameStartsWithIs.kt +++ b/compiler/testData/codegen/box/reflection/properties/getDelegate/booleanPropertyNameStartsWithIs.kt @@ -1,6 +1,5 @@ // IGNORE_BACKEND: JVM_IR -// IGNORE_BACKEND: JS_IR -// IGNORE_BACKEND: JS, NATIVE +// TARGET_BACKEND: JVM // WITH_REFLECT import kotlin.reflect.KProperty diff --git a/compiler/testData/codegen/box/reflection/properties/getDelegate/boundExtensionProperty.kt b/compiler/testData/codegen/box/reflection/properties/getDelegate/boundExtensionProperty.kt index f87f68f252f..88177e4fc43 100644 --- a/compiler/testData/codegen/box/reflection/properties/getDelegate/boundExtensionProperty.kt +++ b/compiler/testData/codegen/box/reflection/properties/getDelegate/boundExtensionProperty.kt @@ -1,6 +1,5 @@ // IGNORE_BACKEND: JVM_IR -// IGNORE_BACKEND: JS_IR -// IGNORE_BACKEND: JS, NATIVE +// TARGET_BACKEND: JVM // WITH_REFLECT import kotlin.reflect.KProperty diff --git a/compiler/testData/codegen/box/reflection/properties/getDelegate/boundMemberProperty.kt b/compiler/testData/codegen/box/reflection/properties/getDelegate/boundMemberProperty.kt index 419a70a2496..3b6a0298ce5 100644 --- a/compiler/testData/codegen/box/reflection/properties/getDelegate/boundMemberProperty.kt +++ b/compiler/testData/codegen/box/reflection/properties/getDelegate/boundMemberProperty.kt @@ -1,6 +1,5 @@ // IGNORE_BACKEND: JVM_IR -// IGNORE_BACKEND: JS_IR -// IGNORE_BACKEND: JS, NATIVE +// TARGET_BACKEND: JVM // WITH_REFLECT import kotlin.reflect.KProperty diff --git a/compiler/testData/codegen/box/reflection/properties/getDelegate/extensionProperty.kt b/compiler/testData/codegen/box/reflection/properties/getDelegate/extensionProperty.kt index 96a0f85fb4f..8a4ea814a47 100644 --- a/compiler/testData/codegen/box/reflection/properties/getDelegate/extensionProperty.kt +++ b/compiler/testData/codegen/box/reflection/properties/getDelegate/extensionProperty.kt @@ -1,6 +1,5 @@ // IGNORE_BACKEND: JVM_IR -// IGNORE_BACKEND: JS_IR -// IGNORE_BACKEND: JS, NATIVE +// TARGET_BACKEND: JVM // WITH_REFLECT import kotlin.reflect.KProperty diff --git a/compiler/testData/codegen/box/reflection/properties/getDelegate/fakeOverride.kt b/compiler/testData/codegen/box/reflection/properties/getDelegate/fakeOverride.kt index f6b3274ab3b..18de57824a7 100644 --- a/compiler/testData/codegen/box/reflection/properties/getDelegate/fakeOverride.kt +++ b/compiler/testData/codegen/box/reflection/properties/getDelegate/fakeOverride.kt @@ -1,6 +1,5 @@ // IGNORE_BACKEND: JVM_IR -// IGNORE_BACKEND: JS_IR -// IGNORE_BACKEND: JS, NATIVE +// TARGET_BACKEND: JVM // WITH_REFLECT import kotlin.reflect.KProperty diff --git a/compiler/testData/codegen/box/reflection/properties/getDelegate/getExtensionDelegate.kt b/compiler/testData/codegen/box/reflection/properties/getDelegate/getExtensionDelegate.kt index b42d92c2aa7..fa457393183 100644 --- a/compiler/testData/codegen/box/reflection/properties/getDelegate/getExtensionDelegate.kt +++ b/compiler/testData/codegen/box/reflection/properties/getDelegate/getExtensionDelegate.kt @@ -1,6 +1,5 @@ // IGNORE_BACKEND: JVM_IR -// IGNORE_BACKEND: JS_IR -// IGNORE_BACKEND: JS, NATIVE +// TARGET_BACKEND: JVM // WITH_REFLECT import kotlin.reflect.KProperty diff --git a/compiler/testData/codegen/box/reflection/properties/getDelegate/kPropertyForDelegatedProperty.kt b/compiler/testData/codegen/box/reflection/properties/getDelegate/kPropertyForDelegatedProperty.kt index 83867d2a743..2295be4edee 100644 --- a/compiler/testData/codegen/box/reflection/properties/getDelegate/kPropertyForDelegatedProperty.kt +++ b/compiler/testData/codegen/box/reflection/properties/getDelegate/kPropertyForDelegatedProperty.kt @@ -1,6 +1,5 @@ // IGNORE_BACKEND: JVM_IR -// IGNORE_BACKEND: JS_IR -// IGNORE_BACKEND: JS, NATIVE +// TARGET_BACKEND: JVM // WITH_REFLECT import kotlin.reflect.KProperty diff --git a/compiler/testData/codegen/box/reflection/properties/getDelegate/memberExtensionProperty.kt b/compiler/testData/codegen/box/reflection/properties/getDelegate/memberExtensionProperty.kt index 24c4e6c8f67..f080d575de0 100644 --- a/compiler/testData/codegen/box/reflection/properties/getDelegate/memberExtensionProperty.kt +++ b/compiler/testData/codegen/box/reflection/properties/getDelegate/memberExtensionProperty.kt @@ -1,6 +1,5 @@ // IGNORE_BACKEND: JVM_IR -// IGNORE_BACKEND: JS_IR -// IGNORE_BACKEND: JS, NATIVE +// TARGET_BACKEND: JVM // WITH_REFLECT import kotlin.reflect.* diff --git a/compiler/testData/codegen/box/reflection/properties/getDelegate/memberProperty.kt b/compiler/testData/codegen/box/reflection/properties/getDelegate/memberProperty.kt index 080b1ab2d02..ccf7751822c 100644 --- a/compiler/testData/codegen/box/reflection/properties/getDelegate/memberProperty.kt +++ b/compiler/testData/codegen/box/reflection/properties/getDelegate/memberProperty.kt @@ -1,6 +1,5 @@ // IGNORE_BACKEND: JVM_IR -// IGNORE_BACKEND: JS_IR -// IGNORE_BACKEND: JS, NATIVE +// TARGET_BACKEND: JVM // WITH_REFLECT import kotlin.reflect.KProperty diff --git a/compiler/testData/codegen/box/reflection/properties/getDelegate/nameClashClassAndCompanion.kt b/compiler/testData/codegen/box/reflection/properties/getDelegate/nameClashClassAndCompanion.kt index 838008dd0a8..912c4d26267 100644 --- a/compiler/testData/codegen/box/reflection/properties/getDelegate/nameClashClassAndCompanion.kt +++ b/compiler/testData/codegen/box/reflection/properties/getDelegate/nameClashClassAndCompanion.kt @@ -1,6 +1,5 @@ // IGNORE_BACKEND: JVM_IR -// IGNORE_BACKEND: JS_IR -// IGNORE_BACKEND: JS, NATIVE +// TARGET_BACKEND: JVM // WITH_REFLECT import kotlin.reflect.KProperty diff --git a/compiler/testData/codegen/box/reflection/properties/getDelegate/nameClashExtensionProperties.kt b/compiler/testData/codegen/box/reflection/properties/getDelegate/nameClashExtensionProperties.kt index 0edfd3ae185..6041b22d7d7 100644 --- a/compiler/testData/codegen/box/reflection/properties/getDelegate/nameClashExtensionProperties.kt +++ b/compiler/testData/codegen/box/reflection/properties/getDelegate/nameClashExtensionProperties.kt @@ -1,6 +1,5 @@ // IGNORE_BACKEND: JVM_IR -// IGNORE_BACKEND: JS_IR -// IGNORE_BACKEND: JS, NATIVE +// TARGET_BACKEND: JVM // WITH_REFLECT import kotlin.reflect.* diff --git a/compiler/testData/codegen/box/reflection/properties/getDelegate/notDelegatedProperty.kt b/compiler/testData/codegen/box/reflection/properties/getDelegate/notDelegatedProperty.kt index fcff2bd6063..5792421f36c 100644 --- a/compiler/testData/codegen/box/reflection/properties/getDelegate/notDelegatedProperty.kt +++ b/compiler/testData/codegen/box/reflection/properties/getDelegate/notDelegatedProperty.kt @@ -1,6 +1,5 @@ // IGNORE_BACKEND: JVM_IR -// IGNORE_BACKEND: JS_IR -// IGNORE_BACKEND: JS, NATIVE +// TARGET_BACKEND: JVM // WITH_REFLECT import kotlin.reflect.KProperty2 diff --git a/compiler/testData/codegen/box/reflection/properties/getDelegate/overrideDelegatedByDelegated.kt b/compiler/testData/codegen/box/reflection/properties/getDelegate/overrideDelegatedByDelegated.kt index f0000fee95f..56f7d1ea823 100644 --- a/compiler/testData/codegen/box/reflection/properties/getDelegate/overrideDelegatedByDelegated.kt +++ b/compiler/testData/codegen/box/reflection/properties/getDelegate/overrideDelegatedByDelegated.kt @@ -1,6 +1,5 @@ // IGNORE_BACKEND: JVM_IR -// IGNORE_BACKEND: JS_IR -// IGNORE_BACKEND: JS, NATIVE +// TARGET_BACKEND: JVM // WITH_REFLECT import kotlin.reflect.KProperty diff --git a/compiler/testData/codegen/box/reflection/properties/getDelegate/topLevelProperty.kt b/compiler/testData/codegen/box/reflection/properties/getDelegate/topLevelProperty.kt index d15116fd2df..e507a96394a 100644 --- a/compiler/testData/codegen/box/reflection/properties/getDelegate/topLevelProperty.kt +++ b/compiler/testData/codegen/box/reflection/properties/getDelegate/topLevelProperty.kt @@ -1,6 +1,5 @@ // IGNORE_BACKEND: JVM_IR -// IGNORE_BACKEND: JS_IR -// IGNORE_BACKEND: JS, NATIVE +// TARGET_BACKEND: JVM // WITH_REFLECT import kotlin.reflect.KProperty diff --git a/compiler/testData/codegen/box/reflection/properties/privateClassVal.kt b/compiler/testData/codegen/box/reflection/properties/privateClassVal.kt index 3c190e9d48b..c04763ecaa4 100644 --- a/compiler/testData/codegen/box/reflection/properties/privateClassVal.kt +++ b/compiler/testData/codegen/box/reflection/properties/privateClassVal.kt @@ -1,6 +1,4 @@ -// IGNORE_BACKEND: JS_IR -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS, NATIVE +// TARGET_BACKEND: JVM // WITH_REFLECT diff --git a/compiler/testData/codegen/box/reflection/properties/privateClassVar.kt b/compiler/testData/codegen/box/reflection/properties/privateClassVar.kt index 46b81bab9a3..a117ada322b 100644 --- a/compiler/testData/codegen/box/reflection/properties/privateClassVar.kt +++ b/compiler/testData/codegen/box/reflection/properties/privateClassVar.kt @@ -1,6 +1,4 @@ -// IGNORE_BACKEND: JS_IR -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS, NATIVE +// TARGET_BACKEND: JVM // WITH_REFLECT diff --git a/compiler/testData/codegen/box/reflection/properties/privatePropertyCallIsAccessibleOnAccessors.kt b/compiler/testData/codegen/box/reflection/properties/privatePropertyCallIsAccessibleOnAccessors.kt index c125c28b29f..060de1620e1 100644 --- a/compiler/testData/codegen/box/reflection/properties/privatePropertyCallIsAccessibleOnAccessors.kt +++ b/compiler/testData/codegen/box/reflection/properties/privatePropertyCallIsAccessibleOnAccessors.kt @@ -1,12 +1,10 @@ -// IGNORE_BACKEND: JS_IR -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS, NATIVE +// TARGET_BACKEND: JVM // WITH_REFLECT import kotlin.reflect.* import kotlin.reflect.full.* -import kotlin.reflect.jvm.* +import kotlin.reflect.jvm.isAccessible import kotlin.test.* class A(private var foo: String) diff --git a/compiler/testData/codegen/box/reflection/properties/privateToThisAccessors.kt b/compiler/testData/codegen/box/reflection/properties/privateToThisAccessors.kt index f11834c295e..2a678bc8553 100644 --- a/compiler/testData/codegen/box/reflection/properties/privateToThisAccessors.kt +++ b/compiler/testData/codegen/box/reflection/properties/privateToThisAccessors.kt @@ -1,13 +1,11 @@ // IGNORE_BACKEND: JVM_IR -// IGNORE_BACKEND: JS_IR -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS, NATIVE +// TARGET_BACKEND: JVM // WITH_REFLECT import kotlin.reflect.* import kotlin.reflect.full.* -import kotlin.reflect.jvm.* +import kotlin.reflect.jvm.isAccessible class K { private var t: T diff --git a/compiler/testData/codegen/box/reflection/properties/protectedClassVar.kt b/compiler/testData/codegen/box/reflection/properties/protectedClassVar.kt index 00974d571af..543fcd02329 100644 --- a/compiler/testData/codegen/box/reflection/properties/protectedClassVar.kt +++ b/compiler/testData/codegen/box/reflection/properties/protectedClassVar.kt @@ -1,6 +1,4 @@ -// IGNORE_BACKEND: JS_IR -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS, NATIVE +// TARGET_BACKEND: JVM // WITH_REFLECT diff --git a/compiler/testData/codegen/box/reflection/properties/publicClassValAccessible.kt b/compiler/testData/codegen/box/reflection/properties/publicClassValAccessible.kt index 85c5649eb11..3be5bc57a77 100644 --- a/compiler/testData/codegen/box/reflection/properties/publicClassValAccessible.kt +++ b/compiler/testData/codegen/box/reflection/properties/publicClassValAccessible.kt @@ -1,7 +1,5 @@ // IGNORE_BACKEND: JVM_IR -// IGNORE_BACKEND: JS_IR -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS, NATIVE +// TARGET_BACKEND: JVM // WITH_REFLECT diff --git a/compiler/testData/codegen/box/reflection/types/jvmErasureOfClass.kt b/compiler/testData/codegen/box/reflection/types/jvmErasureOfClass.kt index 4e8d12096d8..01c927eabbc 100644 --- a/compiler/testData/codegen/box/reflection/types/jvmErasureOfClass.kt +++ b/compiler/testData/codegen/box/reflection/types/jvmErasureOfClass.kt @@ -1,7 +1,5 @@ // IGNORE_BACKEND: JVM_IR -// IGNORE_BACKEND: JS_IR -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS, NATIVE +// TARGET_BACKEND: JVM // WITH_REFLECT diff --git a/compiler/testData/codegen/box/reflection/types/jvmErasureOfTypeParameter.kt b/compiler/testData/codegen/box/reflection/types/jvmErasureOfTypeParameter.kt index 11a1b6d61a0..0c30cd71cb7 100644 --- a/compiler/testData/codegen/box/reflection/types/jvmErasureOfTypeParameter.kt +++ b/compiler/testData/codegen/box/reflection/types/jvmErasureOfTypeParameter.kt @@ -1,6 +1,4 @@ -// IGNORE_BACKEND: JS_IR -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS, NATIVE +// TARGET_BACKEND: JVM // WITH_REFLECT diff --git a/compiler/testData/compileKotlinAgainstKotlin/reflectTopLevelFunctionOtherFile.kt b/compiler/testData/compileKotlinAgainstKotlin/reflectTopLevelFunctionOtherFile.kt index 2d45467da2d..4c6721a4750 100644 --- a/compiler/testData/compileKotlinAgainstKotlin/reflectTopLevelFunctionOtherFile.kt +++ b/compiler/testData/compileKotlinAgainstKotlin/reflectTopLevelFunctionOtherFile.kt @@ -1,4 +1,4 @@ -// IGNORE_BACKEND: NATIVE +// TARGET_BACKEND: JVM // WITH_REFLECT // FILE: A.kt