Specify type arguments to fix compilation against bootstrap compiler

This commit is contained in:
Mikhail Zarechenskiy
2019-05-06 12:30:48 +03:00
parent 8446ea8a6b
commit 2f835ed66f
7 changed files with 16 additions and 15 deletions
@@ -762,7 +762,7 @@ class RawFirBuilder(val session: FirSession, val stubMode: Boolean) {
}
private fun typeParametersFromSelfType(delegatedSelfTypeRef: FirTypeRef): List<FirTypeParameter> {
return delegatedSelfTypeRef.coneTypeSafe()
return delegatedSelfTypeRef.coneTypeSafe<ConeKotlinType>()
?.typeArguments
?.map { ((it as ConeTypeParameterType).lookupTag as FirTypeParameterSymbol).fir }
?: emptyList()