FIR: use withNullability with type context whenever possible

It could simplify flexible type cases.
This commit is contained in:
Jinseong Jeon
2021-05-01 22:58:03 -07:00
committed by TeamCityServer
parent f94ed1a00c
commit bb37728e4f
9 changed files with 37 additions and 23 deletions
@@ -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(