Skip to content

Commit

Permalink
Alter %h = {} deprecation message
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed Jul 9, 2014
1 parent 41574ab commit 9a8470c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/core/Hash.pm
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,10 @@ my class Hash { # declared in BOOTSTRAP
if $items.elems == 1 {
if nqp::istype($items[0],EnumMap) {
my Mu $x := $items.shift;
DEPRECATED(self.VAR.name ~ ' = ...', :what(self.VAR.name ~ ' = { ... }'))
if nqp::iscont($x);
DEPRECATED(
self.VAR.name ~ ' = %(itemized hash)',
:what(self.VAR.name ~ ' = itemized hash')
) if nqp::iscont($x);
for $x.list { self.STORE_AT_KEY(.key, .value) }
return self;
}
Expand Down

0 comments on commit 9a8470c

Please sign in to comment.