Raw FIR: support type placeholders
This commit is contained in:
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(
|
||||
|
||||
Reference in New Issue
Block a user