[FIR] Remove the TODO in FirDelegatedPropertyChecker

It looks like in `differentDelegatedExpressions.fir.kt`
there're no diagnostics on the delegates
already, so this TODO is unclear.
This commit is contained in:
Nikolay Lunyak
2023-06-27 15:42:14 +03:00
committed by Space Team
parent 24b1fb2ccf
commit be8d9ba262
@@ -33,9 +33,6 @@ object FirDelegatedPropertyChecker : FirPropertyChecker() {
val delegateType = delegate.typeRef.coneType
val source = delegate.source;
// TODO: Also suppress delegate issue if type inference failed. For example, in
// compiler/testData/diagnostics/tests/delegatedProperty/inference/differentDelegatedExpressions.fir.kt, no delegate issues are
// reported due to the inference issue.
if (delegateType is ConeErrorType) {
// Implicit recursion type is not reported since the type ref does not have a real source.
if (source != null && (delegateType.diagnostic as? ConeSimpleDiagnostic)?.kind == DiagnosticKind.RecursionInImplicitTypes) {