You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class D {
has $.a is required("it is a good idea");
}
my $d = D.new;
CATCH{ default { say .^name, ': ', .Str } }
# OUTPUT: «X::Attribute::Required: The attribute '$!a' is required because it is a good idea,but you did not provide a value for it.»
But the example dies with a compile time error
===SORRY!===
Object of type Str in QAST::WVal, but not in SC
The text was updated successfully, but these errors were encountered:
I didn't think this was going to ever happen, but it's happened. I'm reopening an issue closed by someone else.
Thing is, it would be better to mention the version where this is actually working, and maybe provide an alternative for previous versions, as indicated here
JJ
added
the
bug
Error of some kind, from a typo to errors in the examples.
label
Jul 23, 2018
d6b162b added this example
But the example dies with a compile time error
The text was updated successfully, but these errors were encountered: