Skip to content

Commit

Permalink
Stub the Array::ShapedXArray roles
Browse files Browse the repository at this point in the history
These roles need stubbing for some reason, otherwise they will cause
"Object does not exist in serialization context" error when trying to
create something inside the Array class, like the Array::Agnostic role
does, which happened after ee08923 and 532b542.
  • Loading branch information
lizmat committed Nov 8, 2020
1 parent 46477cd commit cb95c65
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/core.c/Array.pm6
Expand Up @@ -5,6 +5,15 @@ my class X::Subscript::Negative { ... };
my class X::NotEnoughDimensions { ... };
my class X::Assignment::ArrayShapeMismatch { ... };

# These roles need stubbing for some reason, otherwise they will cause
# "Object does not exist in serialization context" error when trying to
# create something inside the Array class, like the Array::Agnostic role
# does, which happened after ee089234fc and 532b5423f0.
our role Array::ShapedArray { ... }
our role Array::Shaped1Array { ... }
our role Array::Shaped2Array { ... }
our role Array::Shaped3Array { ... }

# stub what we need now
my class array is repr('VMArray') { ... };

Expand Down

0 comments on commit cb95c65

Please sign in to comment.