[K/JS] Allow parameter properties inside external declarations ^KT-65965 Fixed

This commit is contained in:
Artem Kobzar
2024-02-29 09:46:59 +00:00
committed by Space Team
parent 5e83350576
commit 4f4c98ec73
12 changed files with 234 additions and 7 deletions
@@ -157,7 +157,10 @@ class JsExternalChecker(private val allowCompanionInInterface: Boolean) : Declar
checkDelegation(declaration, descriptor, trace)
checkAnonymousInitializer(declaration, trace)
checkEnumEntry(declaration, trace)
checkConstructorPropertyParam(declaration, descriptor, trace)
if (!context.languageVersionSettings.supportsFeature(LanguageFeature.JsExternalPropertyParameters)) {
checkConstructorPropertyParam(declaration, descriptor, trace)
}
}
private fun checkBody(