[FIR] Add TODO for ConeDestructuringDeclarationsOnTopLevel

#KT-58563
This commit is contained in:
Kirill Rakhman
2023-05-09 09:40:37 +02:00
committed by Space Team
parent 24d7c3761d
commit f0a8d7c86f
@@ -107,7 +107,7 @@ private fun ConeDiagnostic.toKtDiagnostic(
else -> this.getFactory(source).createOn(qualifiedAccessSource ?: source)
}
is ConeDestructuringDeclarationsOnTopLevel -> null // reported as regular syntax error
is ConeDestructuringDeclarationsOnTopLevel -> null // TODO Currently a parsing error. Would be better to report here instead KT-58563
is ConeCannotInferTypeParameterType -> FirErrors.CANNOT_INFER_PARAMETER_TYPE.createOn(source)
is ConeCannotInferValueParameterType -> FirErrors.CANNOT_INFER_PARAMETER_TYPE.createOn(source)
is ConeTypeVariableTypeIsNotInferred -> FirErrors.INFERENCE_ERROR.createOn(qualifiedAccessSource ?: source)