Skip to content

Commit 0c8b5b3

Browse files
committed
test: update syntax tests
1 parent 4e4d701 commit 0c8b5b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/syntax.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -377,8 +377,8 @@ add_method_to_glob_fn!()
377377
@test_parseerror "function finally() end"
378378

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

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

0 commit comments

Comments
 (0)