Exception thrown when trying to assign to something read-only
is Exception
Code like
sub f() ;f() = 'new value'; # throws an X::Assignment::ROCATCH ;# OUTPUT: «X::Assignment::RO: Cannot modify an immutable Any»
throws an exception of type X::Assignment::RO
.
method typename(X::Assignment::RO: --> Str)
Returns the type name of the value on the left-hand side