Use abstract 'createErrorType' in TypeApproximator to fix FIR assertion

NB: each type system should use its own error types
This commit is contained in:
Mikhail Glukhikh
2019-05-24 13:06:39 +03:00
parent 36ab325394
commit 0d35c68f88
@@ -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()})"
)