FIR: Report ARGUMENT_TYPE_MISMATCH instead of TYPE_MISMATCH for arguments

This commit is contained in:
Denis.Zharkov
2021-05-19 18:53:03 +03:00
committed by teamcityserver
parent db500fab94
commit a801eccf66
8 changed files with 24 additions and 24 deletions
@@ -219,7 +219,7 @@ private fun ConstraintSystemError.toDiagnostic(
}
argument?.let {
return FirErrors.TYPE_MISMATCH.on(it.source ?: source, lowerConeType, upperConeType)
return FirErrors.ARGUMENT_TYPE_MISMATCH.on(it.source ?: source, lowerConeType, upperConeType)
}
when (position) {