e58b5e7d22
This commit addresses a scenario where an 'actual' declaration is marked with a Deprecated annotation at the 'Hidden' level, while the corresponding 'expect' declaration is not. When resolving, 'CheckHiddenDeclaration' marks the 'actual' declaration as unsuccessful, leading to the selection of the 'expect' declaration as the successful candidate. 'FirDeprecationChecker' handles a case where an 'actual' class is annotated with Deprecated, but the 'expect' class is not. During the checking of the 'actual' class constructor, 'CheckHiddenDeclaration' skips it due to the absence of a direct Deprecated annotation. 'FirDeprecationChecker' then identifies this constructor and reports a DEPRECATION_ERROR. 'FirDeprecationChecker' will now be applied to solving problems related to 'actual' declarations with corresponding Deprecated annotations. The process remains the same: 'CheckHiddenDeclaration' will skip the 'actual' declaration, and then 'FirDeprecationChecker' will identify it and report the error. ^KT-61792 Fixed