Error due to binding to a slice
is Exception
When you try to bind to an array or hash slice:
my ; [0, 1] := [42];CATCH ;# OUTPUT: «X::Bind::Slice: Cannot bind to Array slice»
and
my ; <a b> := ;CATCH ;# OUTPUT: «X::Bind::Slice: Cannot bind to Hash slice»
you get an exception of type ::Bind::Slice
.
method type(X::Bind::Slice:)
returns the type object of the thing that you tried to slice-bind, for example Array, List or Hash.