Skip to content

Commit

Permalink
Add missing return case in isidentityfree (#48321)
Browse files Browse the repository at this point in the history
Fixes #48313.
  • Loading branch information
Keno authored Jan 18, 2023
1 parent 5b80e48 commit e1fc482
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions base/reflection.jl
Original file line number Diff line number Diff line change
Expand Up @@ -659,6 +659,8 @@ function isidentityfree(@nospecialize(t::Type))
elseif isa(t, Union)
return isidentityfree(t.a) && isidentityfree(t.b)
end
# TypeVar, etc.
return false
end

iskindtype(@nospecialize t) = (t === DataType || t === UnionAll || t === Union || t === typeof(Bottom))
Expand Down

0 comments on commit e1fc482

Please sign in to comment.