We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
is required
1 parent 394215d commit 3254d02Copy full SHA for 3254d02
doc/Type/Attribute.pod6
@@ -62,7 +62,9 @@ error.
62
CATCH{ default { say .^name, ': ', .Str } }
63
# OUTPUT: «X::Attribute::Required: The attribute '$!a' is required, but you did not provide a value for it.»
64
65
-You can also specify a reason why the attribute is required:
+B<Available as of 6.d language version> (early implementation exists in Rakudo compiler 2018.07+):
66
+
67
+You can specify a reason why the attribute is required:
68
69
class D {
70
has $.a is required("it is a good idea");
0 commit comments