[FIR] Don't build placeholder projection for types

This commit is contained in:
Victor Petukhov
2021-10-26 16:28:02 +03:00
parent b29aeaa596
commit 8a99aa4b42
6 changed files with 51 additions and 5 deletions
@@ -1782,8 +1782,9 @@ open class RawFirBuilder(
source = projectionSource
}
}
val argumentList = typeProjection.parent as? KtTypeArgumentList
val typeReference = typeProjection.typeReference
if (typeReference?.isPlaceholder == true) {
if (argumentList?.parent is KtCallExpression && typeReference?.isPlaceholder == true) {
return buildPlaceholderProjection {
source = projectionSource
}