diff --git a/core/descriptors/src/org/jetbrains/kotlin/types/ErrorUtils.kt b/core/descriptors/src/org/jetbrains/kotlin/types/ErrorUtils.kt index 6da2efee1d0..aba91c9d4a9 100644 --- a/core/descriptors/src/org/jetbrains/kotlin/types/ErrorUtils.kt +++ b/core/descriptors/src/org/jetbrains/kotlin/types/ErrorUtils.kt @@ -23,6 +23,18 @@ object ErrorUtils { ) @JvmStatic fun createUnresolvedType(presentableName: String, arguments: List): SimpleType { - return org.jetbrains.kotlin.types.error.ErrorUtils.createErrorType(ErrorTypeKind.UNRESOLVED_TYPE, this.toString()) + return org.jetbrains.kotlin.types.error.ErrorUtils.createErrorTypeWithArguments( + ErrorTypeKind.UNRESOLVED_TYPE, arguments, this.toString() + ) + } + + @IDEAPluginsCompatibilityAPI( + _213, _221, + message = "Please migrate to the org.jetbrains.kotlin.types.error.ErrorUtils", + plugins = "mobile-ide/kotlin-ocswift" + ) + @JvmStatic + fun createErrorType(debugMessage: String): SimpleType { + return org.jetbrains.kotlin.types.error.ErrorUtils.createErrorType(ErrorTypeKind.UNRESOLVED_TYPE, debugMessage) } } \ No newline at end of file