Skip to content

Commit

Permalink
At least temporary fix for RT #131722
Browse files Browse the repository at this point in the history
But one wonders how <a b c> provides containers to begin with.  So
for the moment, this is at least a temporary fix.
  • Loading branch information
lizmat committed Jul 9, 2017
1 parent 05c255c commit 4894a75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/Map.pm
Expand Up @@ -299,10 +299,10 @@ my class Map does Iterable does Associative { # declared in BOOTSTRAP

proto method STORE_AT_KEY(|) { * }
multi method STORE_AT_KEY(Str:D \key, Mu \value --> Nil) {
nqp::bindkey($!storage, nqp::unbox_s(key), value)
nqp::bindkey($!storage, nqp::unbox_s(key), nqp::decont(value))
}
multi method STORE_AT_KEY(\key, Mu \value --> Nil) {
nqp::bindkey($!storage, nqp::unbox_s(key.Str), value)
nqp::bindkey($!storage, nqp::unbox_s(key.Str), nqp::decont(value))
}

method Capture(Map:D:) {
Expand Down

0 comments on commit 4894a75

Please sign in to comment.