Raw FIR: support type placeholders

This commit is contained in:
Simon Ogorodnik
2019-04-05 17:07:52 +03:00
committed by Mikhail Glukhikh
parent 0e0c188e05
commit 93cb23a498
@@ -892,6 +892,9 @@ class RawFirBuilder(val session: FirSession, val stubMode: Boolean) {
if (projectionKind == KtProjectionKind.STAR) {
return FirStarProjectionImpl(session, typeProjection)
}
if (projectionKind == KtProjectionKind.NONE && typeProjection.text == "_") {
return FirTypePlaceholderProjection
}
val typeReference = typeProjection.typeReference
val firType = typeReference.toFirOrErrorType()
return FirTypeProjectionWithVarianceImpl(