Skip to content

Commit b031f9e

Browse files
committed
allowing deviations in the type name doesn't seem to be necessary anymore (and was unsound)
1 parent 1d06f25 commit b031f9e

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

base/inference.jl

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -836,13 +836,6 @@ function type_more_complex(t::ANY, c::ANY, sources::SimpleVector, tupledepth::In
836836
end
837837
return false
838838
end
839-
if tupledepth > 0
840-
# allow deviation in the type name, if all of its parameters are also monotonically simpler
841-
for i = 1:length(tP)
842-
is_derived_type_from_any(tP[i], sources) || return true
843-
end
844-
return false
845-
end
846839
if isType(t) # allow taking typeof any source type anywhere as Type{...}, as long as it isn't nesting Type{Type{...}}
847840
tt = unwrap_unionall(t.parameters[1])
848841
if isa(tt, DataType) && !isType(tt)

0 commit comments

Comments
 (0)