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.
1 parent c316e30 commit 19403cbCopy full SHA for 19403cb
src/StructHelpers.jl
@@ -122,7 +122,8 @@ macro batteries(T, kw...)
122
if val isa Bool
123
124
elseif pname == :typesalt
125
- if !(val isa Union{Nothing,Integer})
+ typesalt = val
126
+ if !(typesalt isa Union{Nothing,Integer})
127
error("""`typesalt` must be literally `nothing` or an unsigned integer. Got:
128
typesalt = $(repr(typesalt))::$(typeof(typesalt))
129
""")
0 commit comments