Optimize/simplify FirJvmTypeMapper.defaultType
This commit is contained in:
+1
-1
@@ -202,7 +202,7 @@ class ConeTypeSystemCommonBackendContextForTypeMapping(
|
|||||||
return when (this) {
|
return when (this) {
|
||||||
is ConeTypeParameterLookupTag -> ConeTypeParameterTypeImpl(this, isNullable = false)
|
is ConeTypeParameterLookupTag -> ConeTypeParameterTypeImpl(this, isNullable = false)
|
||||||
is ConeClassLikeLookupTag -> {
|
is ConeClassLikeLookupTag -> {
|
||||||
val symbol = symbolProvider.getClassLikeSymbolByFqName(classId) as? FirRegularClassSymbol
|
val symbol = toSymbol(session) as? FirRegularClassSymbol
|
||||||
?: error("Class for $this not found")
|
?: error("Class for $this not found")
|
||||||
symbol.fir.defaultType()
|
symbol.fir.defaultType()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user