Skip to content

Commit 646dd70

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rule.jl

+1-1
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)