[FIR] Implement deprecation for calls to overrides of hidden
#KT-65438
This commit is contained in:
committed by
Space Team
parent
e16f80c578
commit
c6b2675089
+3
-1
@@ -163,4 +163,6 @@ object TypeParameterAsExpression : ResolutionDiagnostic(INAPPLICABLE)
|
||||
class TypeVariableAsExplicitReceiver(
|
||||
val explicitReceiver: FirExpression,
|
||||
val typeParameter: FirTypeParameter,
|
||||
) : ResolutionDiagnostic(RESOLVED_WITH_ERROR)
|
||||
) : ResolutionDiagnostic(RESOLVED_WITH_ERROR)
|
||||
|
||||
object CallToDeprecatedOverrideOfHidden : ResolutionDiagnostic(RESOLVED)
|
||||
+5
@@ -404,3 +404,8 @@ object ConeResolutionResultOverridesOtherToPreserveCompatibility : ConeDiagnosti
|
||||
get() = "Resolution result overrides another result to preserve compatibility, result maybe changed in future versions"
|
||||
|
||||
}
|
||||
|
||||
object ConeCallToDeprecatedOverrideOfHidden : ConeDiagnostic {
|
||||
override val reason: String
|
||||
get() = "Call to deprecated override of hidden"
|
||||
}
|
||||
Reference in New Issue
Block a user