Skip to content

Commit 8652ee5

Browse files
author
José Valim
committed
Do not allow keyword on containers without pos args
1 parent beb1bbe commit 8652ee5

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

lib/elixir/src/elixir_parser.yrl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,6 @@ container_expr -> no_parens_expr : throw_no_parens_many_strict('$1').
411411
container_args_base -> container_expr : ['$1'].
412412
container_args_base -> container_args_base ',' container_expr : ['$3'|'$1'].
413413

414-
container_args -> kw : ['$1'].
415414
container_args -> container_args_base : lists:reverse('$1').
416415
container_args -> container_args_base ',' : lists:reverse('$1').
417416
container_args -> container_args_base ',' kw : lists:reverse(['$3'|'$1']).

lib/elixir/test/elixir/tuple_test.exs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ defmodule TupleTest do
1313

1414
test :keywords do
1515
assert {1, 2, three: :four} == {1, 2, [three: :four]}
16-
assert {one: :two} == {[one: :two]}
1716
end
1817

1918
test :optional_comma do

0 commit comments

Comments
 (0)