From 0d35c68f88deaea2baf5f32b855afa0147423c19 Mon Sep 17 00:00:00 2001 From: Mikhail Glukhikh Date: Fri, 24 May 2019 13:06:39 +0300 Subject: [PATCH] Use abstract 'createErrorType' in TypeApproximator to fix FIR assertion NB: each type system should use its own error types --- .../src/org/jetbrains/kotlin/types/TypeApproximator.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()})" )