diff --git a/compiler/resolution/src/org/jetbrains/kotlin/types/TypeApproximator.kt b/compiler/resolution/src/org/jetbrains/kotlin/types/TypeApproximator.kt index 7312968dd10..d2f5c621b22 100644 --- a/compiler/resolution/src/org/jetbrains/kotlin/types/TypeApproximator.kt +++ b/compiler/resolution/src/org/jetbrains/kotlin/types/TypeApproximator.kt @@ -428,7 +428,7 @@ abstract class AbstractTypeApproximator(val ctx: TypeSystemInferenceExtensionCon when (effectiveVariance) { null -> { return if (conf.errorType) { - ErrorUtils.createErrorType( + createErrorType( "Inconsistent type: $type ($index parameter has declared variance: ${parameter.getVariance()}, " + "but argument variance is ${argument.getVariance()})" )