Drop unused ConeTypeMismatchError

This commit is contained in:
Mikhail Glukhikh
2021-05-17 14:59:07 +03:00
parent b9a4b60b93
commit f0ce311fc6
2 changed files with 0 additions and 6 deletions
@@ -46,7 +46,6 @@ private fun ConeDiagnostic.toFirDiagnostic(
is FirBackingFieldSymbol -> FirErrors.VAL_REASSIGNMENT_VIA_BACKING_FIELD_ERROR.on(source, symbol.fir.symbol)
else -> FirErrors.VAL_REASSIGNMENT.on(source, symbol)
}
is ConeTypeMismatchError -> FirErrors.TYPE_MISMATCH.on(qualifiedAccessSource ?: source, this.expectedType, this.actualType)
is ConeUnexpectedTypeArgumentsError -> FirErrors.TYPE_ARGUMENTS_NOT_ALLOWED.on(this.source.safeAs() ?: source)
is ConeIllegalAnnotationError -> FirErrors.NOT_AN_ANNOTATION_CLASS.on(source, this.name.asString())
is ConeWrongNumberOfTypeArgumentsError ->
@@ -74,11 +74,6 @@ class ConeValReassignmentError(val variable: FirVariableSymbol<*>) : ConeDiagnos
override val reason: String get() = "Re-assigning a val variable"
}
class ConeTypeMismatchError(val expectedType: ConeKotlinType, val actualType: ConeKotlinType) : ConeDiagnostic() {
override val reason: String
get() = "Type mismatch. Expected: $expectedType, Actual: $actualType"
}
class ConeContractDescriptionError(override val reason: String) : ConeDiagnostic()
class ConeIllegalAnnotationError(val name: Name) : ConeDiagnostic() {