Skip to content
Permalink
Browse files

Don't return internal value from !RE-INITIALIZING

This fixes internal errors for the JVM backend for code like

  'my @c[2;2] .= new(:shape(2, 2), <a b>, <c d>)'
  • Loading branch information...
usev6 committed Apr 9, 2019
1 parent af7b833 commit 417fa68e9f9fb1cb550e67b2d19633b7974c9b31
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/ShapedArray.pm6
@@ -278,7 +278,7 @@
}
sub NUMCPY(Mu \to, Mu \from) { NumCopy.new(to,from).sink-all }

method !RE-INITIALIZE(::?CLASS:D:) {
method !RE-INITIALIZE(::?CLASS:D: --> Nil) {
nqp::bindattr( # this is a yucky way to re-init, but it works
self,List,'$!reified',
nqp::getattr(self.new(:shape(self.shape)),List,'$!reified')

0 comments on commit 417fa68

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