Skip to content

Commit

Permalink
Document is required's value is a 6.d thing
Browse files Browse the repository at this point in the history
Closes #2184 D#2184
  • Loading branch information
zoffixznet committed Jul 24, 2018
1 parent 394215d commit 3254d02
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion doc/Type/Attribute.pod6
Expand Up @@ -62,7 +62,9 @@ error.
CATCH{ default { say .^name, ': ', .Str } }
# OUTPUT: «X::Attribute::Required: The attribute '$!a' is required, but you did not provide a value for it.␤»
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+):
You can specify a reason why the attribute is required:
class D {
has $.a is required("it is a good idea");
Expand Down

0 comments on commit 3254d02

Please sign in to comment.