You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/utils.jl
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -145,6 +145,11 @@ true
145
145
@inlineunit(x::Type{Missing}) =missing
146
146
@inlineunit(x::Missing) =missing
147
147
148
+
# Prevent infinite recursion, in case unit(Any) is called.
149
+
@inlineunit(x::Type{Any}) =throw(ArgumentError(
150
+
"unit(Any) was called, which has no meaningful result. This may be due to calling unit(eltype(…)), since eltype has a generic fallback method that returns Any."
0 commit comments