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
@@ -676,7 +676,7 @@ class HtmlFirDump internal constructor(private var linkResolver: FirLinkResolver
AbstractStrictEqualityTypeChecker.strictEqualTypes(
session.typeContext,
flexibleType.lowerBound,
flexibleType.upperBound.withNullability(ConeNullability.NOT_NULL)
flexibleType.upperBound.withNullability(ConeNullability.NOT_NULL, session.typeContext)
)
) {
generate(flexibleType.lowerBound)