Skip to content

Commit e1fc482

Browse files
authored
Add missing return case in isidentityfree (#48321)
Fixes #48313.
1 parent 5b80e48 commit e1fc482

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

base/reflection.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -659,6 +659,8 @@ function isidentityfree(@nospecialize(t::Type))
659659
elseif isa(t, Union)
660660
return isidentityfree(t.a) && isidentityfree(t.b)
661661
end
662+
# TypeVar, etc.
663+
return false
662664
end
663665

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

0 commit comments

Comments
 (0)