We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a380ed commit 646dd70Copy full SHA for 646dd70
src/rule.jl
@@ -318,7 +318,7 @@ macro rule(expr, option...)
318
@assert expr.head == :call && expr.args[1] == :(=>)
319
fullac = false
320
if length(option) > 0
321
- @assert option[1] == :fullac "@rule only accepts one option `fullac` after the rule itself"
+ @assert length(option) == 1 && option[1] == :fullac "@rule only accepts one option `fullac` after the rule itself"
322
fullac = true
323
end
324
lhs = expr.args[2]
0 commit comments