Skip to content
Permalink
Browse files

Make sure we vivify on containerized type objects

Fixes R#2490, SqrtNegInf++
  • Loading branch information...
lizmat committed Nov 16, 2018
1 parent 21f11a3 commit c4da4c7eab1878674c0b887fc02f0f3991529d7a
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/hash_slice.pm6
@@ -51,7 +51,7 @@ multi sub postcircumfix:<{ }>( \SELF, Iterable \key ) is raw {
?? SELF.AT-KEY(key)
!! nqp::p6bindattrinvres(nqp::create(List),List,'$!reified',
nqp::stmts(
Rakudo::Iterator.AssociativeIterableKeys(SELF,key)
Rakudo::Iterator.AssociativeIterableKeys(SELF //= {},key)
.push-all(my \buffer := nqp::create(IterationBuffer)),
buffer
)
@@ -62,7 +62,7 @@ multi sub postcircumfix:<{ }>(\SELF, Iterable \key, Mu \ASSIGN) is raw {
?? SELF.ASSIGN-KEY(key, ASSIGN)
!! (nqp::p6bindattrinvres(nqp::create(List),List,'$!reified',
nqp::stmts(
Rakudo::Iterator.AssociativeIterableKeys(SELF,key)
Rakudo::Iterator.AssociativeIterableKeys(SELF //= {},key)
.push-all(my \buffer := nqp::create(IterationBuffer)),
buffer
)

0 comments on commit c4da4c7

Please sign in to comment.
You can’t perform that action at this time.