NI: exclude not fixed type variables from types on which null checks should be generated

^KT-36371 Fixed
This commit is contained in:
Victor Petukhov
2020-02-18 16:02:44 +03:00
parent f10696da5e
commit e8524137c3
8 changed files with 140 additions and 1 deletions
@@ -103,7 +103,7 @@ object RuntimeAssertionsTypeChecker : AdditionalTypeChecker {
expressionTypeWithSmartCast: KotlinType,
c: ResolutionContext<*>
) {
if (TypeUtils.noExpectedType(c.expectedType)) return
if (TypeUtils.noExpectedType(c.expectedType) || c.expectedType is StubType) return
val assertionInfo = RuntimeAssertionInfo.create(
c.expectedType,