Skip to content

Commit 596ad9c

Browse files
committed
@rule gives error if more than one option (besides fullac) is passed.
1 parent 0a380ed commit 596ad9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rule.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ macro rule(expr, option...)
318318
@assert expr.head == :call && expr.args[1] == :(=>)
319319
fullac = false
320320
if length(option) > 0
321-
@assert option[1] == :fullac "@rule only accepts one option `fullac` after the rule itself"
321+
@assert length(option) == 1 && option[1] == :fullac "@rule only accepts one option `fullac` after the rule itself"
322322
fullac = true
323323
end
324324
lhs = expr.args[2]

0 commit comments

Comments
 (0)