We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
tag = :hash
1 parent 8118888 commit 20a8adbCopy full SHA for 20a8adb
src/config.jl
@@ -105,7 +105,14 @@ Base.eltype(cfg::AbstractConfig) = eltype(typeof(cfg))
105
106
function maketag(kind::Union{Symbol,Nothing}, f, X)
107
if kind === :default
108
- return Tag(f, X)
+ @static if VERSION ≥ v"1.11"
109
+ return SmallTag(f, X)
110
+ else
111
+ # On ≤1.10, the hash of a type cannot be computed at compile-time,
112
+ # making `SmallTag(...)` type-unstable, so `Tag(...)` is left as
113
+ # as the default.
114
+ return Tag(f, X)
115
+ end
116
elseif kind === :type
117
return Tag(f, X)
118
elseif kind === :hash
0 commit comments