Skip to content

Commit e6ba01a

Browse files
committed
remove sigils from | and \
1 parent 5397065 commit e6ba01a

File tree

8 files changed

+14
-14
lines changed

8 files changed

+14
-14
lines changed

S02-types/anon_block.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ isnt((sub { -> { 3 } }).(), 3, 'as are pointies');
143143
#?niecza skip 'No candidates for dispatch to mone'
144144
#?pugs skip 'parsefail'
145145
{
146-
proto mone(|$) { * }
146+
proto mone(|) { * }
147147
multi mone { 'one' }
148148
is &mone(), 'one', 'check that mutli is callable via &';
149149
is { &^x() }.( &mone ), 'one',

S02-types/capture.t

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ plan 21;
5454
# L<S06/Argument list binding/single scalar parameter marked>
5555
{
5656
sub bar6 ($a, $b, $c) { "$a!$b!$c" }
57-
sub foo6 (|$capture) { bar6(|$capture) }
57+
sub foo6 (|capture) { bar6(|capture) }
5858

5959
#?pugs todo "feature"
6060
is foo6(1,2,3), "1!2!3",
@@ -75,7 +75,7 @@ plan 21;
7575
# Arglists are first-class objects
7676
{
7777
my $capture;
78-
sub foo7 (|$args) { $capture = $args }
78+
sub foo7 (|args) { $capture = args }
7979

8080
lives_ok { foo7(1,2,3,4) }, "captures are first-class objects (1)";
8181
#?pugs todo "feature"

S02-types/sigils-and-types.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ ok &foo.does(Callable), 'a Sub does Callable';
6060
method meth {}
6161
ok &meth.does(Callable), 'a Method does Callable';
6262
}
63-
proto mul(|$) {*}
63+
proto mul(|) {*}
6464
multi mul {}
6565
ok &mul.does(Callable), 'a multi does Callable';
6666
proto pro {}

S06-multi/syntax.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ ok(~&foo ~~ /foo/, 'a multi stringifies sensibly');
161161
}
162162

163163
multi with_cap($a) { $a }
164-
multi with_cap($a,$b,|$cap) { return with_cap($a + $b, |$cap) }
164+
multi with_cap($a,$b,|cap) { return with_cap($a + $b, |cap) }
165165
#?pugs skip 'with_cap not found'
166166
is with_cap(1,2,3,4,5,6), 21, 'captures in multi sigs work';
167167

S06-signature/introspection.t

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,11 @@ sub j(*@i) {
114114
#?niecza skip "Action method fakesignature not yet implemented"
115115
{
116116
my $x;
117-
ok :(|$x).params[0].capture, 'prefix | makes .capture true';
118-
ok :(|$x).perl ~~ / '|' /, 'prefix | appears in .perl output';
117+
ok :(|x).params[0].capture, 'prefix | makes .capture true';
118+
ok :(|x).perl ~~ / '|' /, 'prefix | appears in .perl output';
119119

120-
ok :(\$x).params[0].parcel, 'prefix \\ makes .parcel true';
121-
ok :(\$x).perl ~~ / '\\' /, 'prefix \\ appears in .perl output';
120+
ok :(\x).params[0].parcel, 'prefix \\ makes .parcel true';
121+
ok :(\x).perl ~~ / '\\' /, 'prefix \\ appears in .perl output';
122122
}
123123

124124
# RT #69492
@@ -130,8 +130,8 @@ sub j(*@i) {
130130

131131
# Capture param introspection
132132
{
133-
sub xyz(|$c) {};
134-
is &xyz.signature.params[0].name, '$c' , '.name of |$c is "$c"';
133+
sub xyz(|c) {};
134+
is &xyz.signature.params[0].name, 'c' , '.name of |c is "c"';
135135
#?niecza todo "Does this test make sense?"
136136
is &xyz.signature.params[0].positional, False, '.positional on Capture param is False';
137137
is &xyz.signature.params[0].capture, True , '.capture on Capture param is True';

S12-methods/multi.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ role R2 {
5151
}
5252
eval_dies_ok 'class X does R1 does R2 { }', 'sanity: get composition conflict error';
5353
class C does R1 does R2 {
54-
proto method foo(|$) { * }
54+
proto method foo(|) { * }
5555
}
5656
my $obj = C.new;
5757
#?rakudo 2 skip 'proto does not promote to multi'

S13-overloading/typecasting-mixed.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ plan 14;
88

99
{
1010
class TypeCastMixed {
11-
method &.( |$capture ) {return 'pretending to be a sub'} #OK not used
11+
method &.( |capture ) {return 'pretending to be a sub'} #OK not used
1212
method postcircumfix:<[ ]> (**@slice) {return 'pretending to be an array'} #OK not used
1313
method %.{ **@slice } {return 'pretending to be a hash'} #OK not used
1414
}

S14-traits/routines.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ plan 12;
5555
# RT 112664
5656
{
5757
multi trait_mod:<is>($m, :$a!) {
58-
multi y(|$) { my $x = $m }
58+
multi y(|) { my $x = $m }
5959
$m.wrap(&y)
6060
}
6161
sub rt112664 is a {}

0 commit comments

Comments
 (0)