From be8d9ba2625208fd98a877399f9c74118a1818d1 Mon Sep 17 00:00:00 2001 From: Nikolay Lunyak Date: Tue, 27 Jun 2023 15:42:14 +0300 Subject: [PATCH] [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. --- .../checkers/declaration/FirDelegatedPropertyChecker.kt | 3 --- 1 file changed, 3 deletions(-) diff --git a/compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/checkers/declaration/FirDelegatedPropertyChecker.kt b/compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/checkers/declaration/FirDelegatedPropertyChecker.kt index 4217398afc7..c92cb3e81e9 100644 --- a/compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/checkers/declaration/FirDelegatedPropertyChecker.kt +++ b/compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/checkers/declaration/FirDelegatedPropertyChecker.kt @@ -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) {