[AA] Fix incorrect nullability for KtType created from stub type
^KTIJ-24992 Fixed
This commit is contained in:
committed by
teamcity
parent
1d905aa20c
commit
2eab9fc00f
+2
-1
@@ -448,7 +448,8 @@ internal class KtSymbolByFirBuilder constructor(
|
||||
// TODO this is a temporary hack to prevent FIR IDE from crashing on builder inference, see KT-50916
|
||||
val typeVariable = coneType.constructor.variable as? ConeTypeParameterBasedTypeVariable
|
||||
val typeParameterSymbol = typeVariable?.typeParameterSymbol ?: throwUnexpectedElementError(coneType)
|
||||
val coneTypeParameterType = typeParameterSymbol.toConeType() as ConeTypeParameterType
|
||||
val coneTypeParameterType = (typeParameterSymbol.toConeType() as ConeTypeParameterType)
|
||||
.withNullability(coneType.nullability, rootSession.typeContext)
|
||||
|
||||
KtFirTypeParameterType(coneTypeParameterType, this@KtSymbolByFirBuilder)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user