Skip to content

Commit

Permalink
test: update syntax tests
Browse files Browse the repository at this point in the history
  • Loading branch information
inkydragon committed Jan 29, 2025
1 parent ab8b074 commit 94ef871
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/syntax.jl
Original file line number Diff line number Diff line change
Expand Up @@ -377,8 +377,8 @@ add_method_to_glob_fn!()
@test_parseerror "function finally() end"

# PR #16170
@test Meta.lower(Main, Meta.parse("true(x) = x")) == Expr(:error, "invalid function name \"true\"")
@test Meta.lower(Main, Meta.parse("false(x) = x")) == Expr(:error, "invalid function name \"false\"")
@test Meta.lower(Main, Meta.parse("true(x) = x")) == Expr(:error, "\"true\" is not a valid function argument name")
@test Meta.lower(Main, Meta.parse("false(x) = x")) == Expr(:error, "\"false\" is not a valid function argument name")

# issue #16355
@test Meta.lower(Main, :(f(d:Int...) = nothing)) == Expr(:error, "\"d:Int\" is not a valid function argument name")
Expand Down

0 comments on commit 94ef871

Please sign in to comment.