diff --git a/core/descriptors/src/org/jetbrains/kotlin/renderer/DescriptorRendererImpl.kt b/core/descriptors/src/org/jetbrains/kotlin/renderer/DescriptorRendererImpl.kt index 6ca57ae857c..02127a318cb 100644 --- a/core/descriptors/src/org/jetbrains/kotlin/renderer/DescriptorRendererImpl.kt +++ b/core/descriptors/src/org/jetbrains/kotlin/renderer/DescriptorRendererImpl.kt @@ -25,6 +25,7 @@ import org.jetbrains.kotlin.resolve.descriptorUtil.declaresOrInheritsDefaultValu import org.jetbrains.kotlin.types.* import org.jetbrains.kotlin.types.TypeUtils.CANNOT_INFER_FUNCTION_PARAM_TYPE import org.jetbrains.kotlin.types.error.* +import org.jetbrains.kotlin.types.error.ErrorUtils import org.jetbrains.kotlin.types.typeUtil.isUnresolvedType import org.jetbrains.kotlin.util.capitalizeDecapitalize.toLowerCaseAsciiOnly diff --git a/core/descriptors/src/org/jetbrains/kotlin/types/ErrorUtils.kt b/core/descriptors/src/org/jetbrains/kotlin/types/ErrorUtils.kt new file mode 100644 index 00000000000..6da2efee1d0 --- /dev/null +++ b/core/descriptors/src/org/jetbrains/kotlin/types/ErrorUtils.kt @@ -0,0 +1,28 @@ +/* + * Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. + */ + +package org.jetbrains.kotlin.types + +import org.jetbrains.kotlin.types.error.ErrorTypeKind +import org.jetbrains.kotlin.utils.IDEAPlatforms.* +import org.jetbrains.kotlin.utils.IDEAPluginsCompatibilityAPI + +@Suppress("unused", "UNUSED_PARAMETER") +@IDEAPluginsCompatibilityAPI( + _212, _213, _221, + message = "Please migrate to the org.jetbrains.kotlin.types.error.ErrorUtils", + plugins = "android/safeargs" +) +object ErrorUtils { + @IDEAPluginsCompatibilityAPI( + _212, _213, _221, + message = "Please migrate to the org.jetbrains.kotlin.types.error.ErrorUtils", + plugins = "android/safeargs" + ) + @JvmStatic + fun createUnresolvedType(presentableName: String, arguments: List): SimpleType { + return org.jetbrains.kotlin.types.error.ErrorUtils.createErrorType(ErrorTypeKind.UNRESOLVED_TYPE, this.toString()) + } +} \ No newline at end of file