File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -542,7 +542,7 @@ comma can be provided. In this case conflicts will be reported at compile time.
542
542
543
543
For runtime mixins see L < but|/language/operators#infix_but > and L < does|/language/operators#infix_does > .
544
544
545
- = head3 Role Arguments
545
+ = head3 Role Parameters
546
546
547
547
Roles can be provided with parameters in-between C < [] > behind a roles name.
548
548
X < |Type Capture (role) > L < Type captures|/type/Signature#Type_Captures > are supported.
@@ -554,14 +554,14 @@ X<|Type Capture (role)>L<Type captures|/type/Signature#Type_Captures> are suppor
554
554
dd $c;
555
555
# OUTPUT « C $c = C.new(a => "default") »
556
556
557
- Arguments can have type constraints, C < where > clauses are not supported but can
557
+ Parameters can have type constraints, C < where > clauses are not supported but can
558
558
be achieved via C < subset > s.
559
559
560
- class A {};
561
- class B {};
562
- subset A-or-B where * ~~ A|B;
563
- role R[A-or-B ::T] {};
564
- R[A.new].new;
560
+ class A {};
561
+ class B {};
562
+ subset A-or-B where * ~~ A|B;
563
+ role R[A-or-B ::T] {};
564
+ R[A.new].new;
565
565
566
566
Default parameters can be provided.
567
567
You can’t perform that action at this time.
0 commit comments