From 79e584519f8d5cb3accdb1935817e9d907a87060 Mon Sep 17 00:00:00 2001 From: Mikhail Glukhikh Date: Tue, 29 Oct 2019 11:48:34 +0300 Subject: [PATCH] FirTypeResolverImpl: minor style fix --- .../jetbrains/kotlin/fir/resolve/impl/FirTypeResolverImpl.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/impl/FirTypeResolverImpl.kt b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/impl/FirTypeResolverImpl.kt index cd83a3d4e04..4b682c2e8e2 100644 --- a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/impl/FirTypeResolverImpl.kt +++ b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/impl/FirTypeResolverImpl.kt @@ -76,7 +76,9 @@ class FirTypeResolverImpl(private val session: FirSession) : FirTypeResolver { } override fun resolveUserType(typeRef: FirUserTypeRef, symbol: FirClassifierSymbol<*>?, scope: FirScope): ConeKotlinType { - symbol ?: return ConeKotlinErrorType("Symbol not found, for `${typeRef.render()}`") + if (symbol == null) { + return ConeKotlinErrorType("Symbol not found, for `${typeRef.render()}`") + } return symbol.constructType(typeRef.qualifier, typeRef.isMarkedNullable) }