FIR checker: introduce PropertyChecker alias

and use it to add diagnostic
ININITIALIZER_REQUIRED_FOR_DESTRUCTURING_DECLARATION
This commit is contained in:
Jinseong Jeon
2021-01-13 11:28:52 -08:00
committed by Mikhail Glukhikh
parent db65c787e5
commit 03cb0c3cd1
11 changed files with 62 additions and 8 deletions
@@ -41,6 +41,10 @@ object CommonDeclarationCheckers : DeclarationCheckers() {
FirInapplicableLateinitChecker,
)
override val propertyCheckers: Set<FirPropertyChecker> = setOf(
FirDestructuringDeclarationInitializerChecker,
)
override val regularClassCheckers: Set<FirRegularClassChecker> = setOf(
FirTypeMismatchOnOverrideChecker,
FirMemberPropertyChecker,