Skip to content

Commit 57234e6

Browse files
committed
Document Code.of()
1 parent a38e81a commit 57234e6

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

doc/Type/Code.pod6

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,17 @@ C<count> will return C<Inf>. Named parameters do not contribute.
5858
say &args.count; # 2
5959
say &slurpy.count; # Inf
6060
61+
=head2 of
62+
63+
Defined as:
64+
65+
method of(Code:D:) returns Mu
66+
67+
Returns the return type constraint of the C<Code>:
68+
69+
m: say sub () returns Int {}.of
70+
# OUTPUT: (Int)
71+
6172
=head2 method signature
6273
6374
Defined as:

0 commit comments

Comments
 (0)