Minor: remove when unreachable branches

This commit is contained in:
Mikhail Glukhikh
2019-12-17 15:53:15 +03:00
parent af3ab9178a
commit a6b6c9ba18
@@ -108,13 +108,9 @@ class FirTypeResolverImpl(private val session: FirSession) : FirTypeResolver {
is FirUserTypeRef -> {
resolveUserType(typeRef, resolveToSymbol(typeRef, scope), scope)
}
is FirErrorTypeRef -> typeRef.type
is FirFunctionTypeRef -> {
createFunctionalType(typeRef)
}
is FirImplicitBuiltinTypeRef -> {
resolveToSymbol(typeRef, scope)!!.constructType(emptyList(), isNullable = false, symbolOriginSession = session)
}
is FirDelegatedTypeRef -> {
resolveType(typeRef.typeRef, scope)
}