Skip to content

Commit

Permalink
Resolve conflicts with merging JuliaLang#42901
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian Atol committed Nov 5, 2021
1 parent d451e4a commit e43e271
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions base/compiler/typelimits.jl
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,6 @@ function is_derived_type(@nospecialize(t), @nospecialize(c), mindepth::Int)
# see if it is derived from the body
# also handle the var here, since this construct bounds the mindepth to the smallest possible value
return is_derived_type(t, c.var.ub, mindepth) || is_derived_type(t, c.body, mindepth)
<<<<<<< HEAD
elseif isa(c, Core.TypeofVararg)
return is_derived_type(t, unwrapva(c), mindepth)
=======
>>>>>>> 1daaf473d1... inference: relax type_more_complex for Type
elseif isa(c, DataType)
if mindepth > 0
mindepth -= 1
Expand Down Expand Up @@ -133,14 +128,10 @@ function _limit_type_size(@nospecialize(t), @nospecialize(c), sources::SimpleVec
end
return Vararg{VaT}
elseif isa(t, DataType)
<<<<<<< HEAD
if isa(c, Core.TypeofVararg)
# Tuple{Vararg{T}} --> Tuple{T} is OK
return _limit_type_size(t, unwrapva(c), sources, depth, 0)
elseif isType(t) # allow taking typeof as Type{...}, but ensure it doesn't start nesting
=======
if isType(t) # see equivalent case in type_more_complex
>>>>>>> 1daaf473d1... inference: relax type_more_complex for Type
tt = unwrap_unionall(t.parameters[1])
if isa(tt, Union) || isa(tt, TypeVar) || isType(tt)
is_derived_type_from_any(tt, sources, depth + 1) && return t
Expand Down

0 comments on commit e43e271

Please sign in to comment.