Skip to content

Commit 4226dca

Browse files
committed
added error when using default slow with not supported operation
1 parent 4e04a9b commit 4226dca

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
@@ -64,7 +64,7 @@ function defaultValOfCall(call)
6464
return 1
6565
end
6666
# else no default value for this call
67-
return nothing
67+
error("You can use default slots only with +, * and ^, but you tried with: $call")
6868
end
6969

7070
DefSlot(s) = DefSlot(s, alwaystrue, nothing, 0)

0 commit comments

Comments
 (0)