FIR resolution API: fix handling of expressions inside secondary ctors

This commit is contained in:
Mikhail Glukhikh
2019-07-30 11:23:49 +03:00
parent 2a69efba8a
commit 1f771a2407
14 changed files with 84 additions and 1 deletions
@@ -51,7 +51,7 @@ private fun FirFile.findCallableMember(
ProcessorAction.NEXT
}
}
if (callableMember is KtNamedFunction) {
if (callableMember is KtNamedFunction || callableMember is KtConstructor<*>) {
memberScope.processFunctionsByName(declName, processor)
} else {
memberScope.processPropertiesByName(declName, processor)