Skip to content

Commit

Permalink
Make sure we nqp::create on type objects only
Browse files Browse the repository at this point in the history
Fixes R#2674
  • Loading branch information
lizmat committed Feb 5, 2019
1 parent 92ebc33 commit df96fa0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/Hyper.pm6
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ class Hyper {
my \result := nqp::eqaddr(left.WHAT,List)
|| nqp::eqaddr(left.WHAT,Slip)
?? nqp::p6bindattrinvres(
nqp::create(left),List,'$!reified',values
nqp::create(left.WHAT),List,'$!reified',values
)
!! nqp::can(left,"STORE")
?? left.WHAT.new(nqp::p6bindattrinvres(
Expand Down Expand Up @@ -159,7 +159,7 @@ class Hyper {
my \result := nqp::eqaddr(right.WHAT,List)
|| nqp::eqaddr(right.WHAT,Slip)
?? nqp::p6bindattrinvres( # List or Slip
nqp::create(right),List,'$!reified',values
nqp::create(right.WHAT),List,'$!reified',values
)
!! nqp::can(right,"STORE")
?? right.WHAT.new(nqp::p6bindattrinvres(
Expand Down

0 comments on commit df96fa0

Please sign in to comment.