FIR: use withNullability with type context whenever possible
It could simplify flexible type cases.
This commit is contained in:
committed by
TeamCityServer
parent
f94ed1a00c
commit
bb37728e4f
@@ -582,7 +582,7 @@ class Fir2IrVisitor(
|
||||
IrGetValueImpl(startOffset, endOffset, irLhsVariable.type, irLhsVariable.symbol)
|
||||
|
||||
val originalType = firLhsVariable.returnTypeRef.coneType
|
||||
val notNullType = originalType.withNullability(ConeNullability.NOT_NULL)
|
||||
val notNullType = originalType.withNullability(ConeNullability.NOT_NULL, session.typeContext)
|
||||
val irBranches = listOf(
|
||||
IrBranchImpl(
|
||||
startOffset, endOffset, primitiveOp2(
|
||||
|
||||
Reference in New Issue
Block a user