Skip to content

Commit 7503e20

Browse files
committed
reduce label redeclaration to a warning
1 parent 29e9ef5 commit 7503e20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

STD.pm6

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1282,7 +1282,7 @@ grammar P6 is STD {
12821282
<identifier> ':' <?before \s> <.ws>
12831283

12841284
[ <?{.is_name($label = $<identifier>.Str) }>
1285-
<.sorry("Illegal redeclaration of '$label'")>
1285+
<.worry("Redeclaration of '$label'")>
12861286
]?
12871287

12881288
# add label as a pseudo constant

0 commit comments

Comments
 (0)