Revert "[FE 1.0] Take care callable reference candidates with recursive candidate return type"

This reverts commit d04beaa8bb49c99ceb993f3f7b32169c393b39f4.
This commit is contained in:
Victor Petukhov
2022-05-24 16:00:46 +02:00
committed by teamcity
parent 06deaed3d5
commit 51551998c7
32 changed files with 48 additions and 212 deletions
@@ -195,14 +195,6 @@ class DiagnosticReporterByTrackingStrategy(
SmartCastDiagnostic::class.java -> reportSmartCast(diagnostic as SmartCastDiagnostic)
UnstableSmartCastDiagnosticError::class.java,
UnstableSmartCastResolutionError::class.java -> reportUnstableSmartCast(diagnostic as UnstableSmartCast)
TypeCheckerHasRanIntoRecursion::class.java -> {
diagnostic as TypeCheckerHasRanIntoRecursion
val argumentExpression =
diagnostic.onArgument?.psiCallArgument?.valueArgument?.getArgumentExpression()
if (argumentExpression != null) {
trace.report(TYPECHECKER_HAS_RUN_INTO_RECURSIVE_PROBLEM.errorFactory.on(argumentExpression))
}
}
VisibilityErrorOnArgument::class.java -> {
diagnostic as VisibilityErrorOnArgument
val invisibleMember = diagnostic.invisibleMember
@@ -502,7 +502,7 @@ class NewResolutionOldInference(
extensionReceiverCandidates: List<ReceiverValueWithSmartCastInfo>
): MyCandidate = error("${this::class.simpleName} doesn't support candidates with multiple extension receiver candidates")
override fun createErrorCandidate(reason: ErrorCandidateReason): MyCandidate {
override fun createErrorCandidate(): MyCandidate {
throw IllegalStateException("Not supported creating error candidate for the old type inference candidate factory")
}
@@ -19,9 +19,8 @@ package org.jetbrains.kotlin.util;
import com.intellij.openapi.application.Application;
import com.intellij.openapi.application.ApplicationManager;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.kotlin.types.error.LazyWrappedTypeComputationException;
public class ReenteringLazyValueComputationException extends LazyWrappedTypeComputationException {
public class ReenteringLazyValueComputationException extends RuntimeException {
public ReenteringLazyValueComputationException() {
}