[LightTree] Stop reporting NAME_IN_CONSTRAINT_IS_NOT_A_TYPE_PARAMETER on

...local properties to make it similar to PSI.

See this logic in `org.jetbrains.kotlin.fir.builder.PsiRawFirBuilder.Visitor.toFirProperty`

^KT-62704
This commit is contained in:
Roman Efremov
2024-01-26 16:39:23 +01:00
committed by Space Team
parent 3c8855c152
commit d22cc01638
2 changed files with 7 additions and 5 deletions
@@ -1456,7 +1456,9 @@ class LightTreeRawFirDeclarationBuilder(
contextReceivers.addAll(convertContextReceivers(property))
}.also {
fillDanglingConstraintsTo(firTypeParameters, typeConstraints, it)
if (!isLocal) {
fillDanglingConstraintsTo(firTypeParameters, typeConstraints, it)
}
}
}
}