From f98a5020cdc0d51337befdf7faf43436cdcf64b1 Mon Sep 17 00:00:00 2001 From: Dmitriy Dolovov Date: Fri, 30 Sep 2022 18:45:19 +0200 Subject: [PATCH] [Native][tests] Don't patch FQNs inside of kotlinx.* package --- .../blackboxtest/support/group/ExtTestCaseGroupProvider.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/native/native.tests/tests/org/jetbrains/kotlin/konan/blackboxtest/support/group/ExtTestCaseGroupProvider.kt b/native/native.tests/tests/org/jetbrains/kotlin/konan/blackboxtest/support/group/ExtTestCaseGroupProvider.kt index cbf06704bdc..79b42e26e0c 100644 --- a/native/native.tests/tests/org/jetbrains/kotlin/konan/blackboxtest/support/group/ExtTestCaseGroupProvider.kt +++ b/native/native.tests/tests/org/jetbrains/kotlin/konan/blackboxtest/support/group/ExtTestCaseGroupProvider.kt @@ -284,6 +284,7 @@ private class ExtTestDataFile( val importedFqName = importDirective.importedFqName if (importedFqName == null || importedFqName.startsWith(StandardNames.BUILT_INS_PACKAGE_NAME) + || importedFqName.startsWith(KOTLINX_PACKAGE_NAME) || importedFqName.startsWith(HELPERS_PACKAGE_NAME) ) { return @@ -554,7 +555,7 @@ private class ExtTestDataFile( private val BOX_FUNCTION_NAME = Name.identifier("box") private val OPT_IN_ANNOTATION_NAME = Name.identifier("OptIn") private val HELPERS_PACKAGE_NAME = Name.identifier("helpers") - private val TYPE_OF_NAME = Name.identifier("typeOf") + private val KOTLINX_PACKAGE_NAME = Name.identifier("kotlinx") private val MANDATORY_SOURCE_TRANSFORMERS: ExternalSourceTransformers = listOf(DiagnosticsRemovingSourceTransformer) }