Skip to content

Commit 67a09e1

Browse files
committed
Correct private method call usage in parallel dispatch tests.
1 parent a242d03 commit 67a09e1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

S12-methods/parallel-dispatch.t

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ plan 39;
88
# syn r14547
99

1010
class Foo {
11+
trusts GLOBAL;
1112
has $.count is rw;
1213
method doit {$.count++}
1314
method !priv {$.count++}
@@ -24,9 +25,9 @@ class Bar is Foo {
2425
is(@o.map({.count}), (6..11), 'parallel dispatch using » works');
2526
@o>>.doit;
2627
is(@o.map({.count}), (7..12), 'parallel dispatch using >> works');
27-
@o»!priv;
28+
@o»!Foo::priv;
2829
is(@o.map({.count}), (8..13), 'parallel dispatch to a private using »! works');
29-
@o>>!priv;
30+
@o>>!Foo::priv;
3031
is(@o.map({.count}), (9..14), 'parallel dispatch to a private using >>! works');
3132
}
3233

0 commit comments

Comments
 (0)