Skip to content

Commit

Permalink
remove useless assert
Browse files Browse the repository at this point in the history
  • Loading branch information
nystrom committed Nov 18, 2024
1 parent be7cdf2 commit 6617296
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/binding.jl
Original file line number Diff line number Diff line change
Expand Up @@ -384,10 +384,6 @@ function bind_pattern!(
# array or tuple
subpatterns = source.args

if any(arg -> is_expr(arg, :parameters), subpatterns)
error("$(location.file):$(location.line): Cannot mix named and positional parameters in pattern `$source`.")
end

splat_count = count(s -> is_expr(s, :...), subpatterns)
if splat_count > 1
error("$(location.file):$(location.line): More than one `...` in " *
Expand Down

0 comments on commit 6617296

Please sign in to comment.