Skip to content

Commit

Permalink
allowing deviations in the type name doesn't seem to be necessary any…
Browse files Browse the repository at this point in the history
…more (and was unsound)
  • Loading branch information
vtjnash committed Jun 6, 2017
1 parent 1d06f25 commit b031f9e
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions base/inference.jl
Original file line number Diff line number Diff line change
Expand Up @@ -836,13 +836,6 @@ function type_more_complex(t::ANY, c::ANY, sources::SimpleVector, tupledepth::In
end
return false
end
if tupledepth > 0
# allow deviation in the type name, if all of its parameters are also monotonically simpler
for i = 1:length(tP)
is_derived_type_from_any(tP[i], sources) || return true
end
return false
end
if isType(t) # allow taking typeof any source type anywhere as Type{...}, as long as it isn't nesting Type{Type{...}}
tt = unwrap_unionall(t.parameters[1])
if isa(tt, DataType) && !isType(tt)
Expand Down

0 comments on commit b031f9e

Please sign in to comment.