We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a242d03 commit 67a09e1Copy full SHA for 67a09e1
S12-methods/parallel-dispatch.t
@@ -8,6 +8,7 @@ plan 39;
8
# syn r14547
9
10
class Foo {
11
+ trusts GLOBAL;
12
has $.count is rw;
13
method doit {$.count++}
14
method !priv {$.count++}
@@ -24,9 +25,9 @@ class Bar is Foo {
24
25
is(@o.map({.count}), (6..11), 'parallel dispatch using » works');
26
@o>>.doit;
27
is(@o.map({.count}), (7..12), 'parallel dispatch using >> works');
- @o»!priv;
28
+ @o»!Foo::priv;
29
is(@o.map({.count}), (8..13), 'parallel dispatch to a private using »! works');
- @o>>!priv;
30
+ @o>>!Foo::priv;
31
is(@o.map({.count}), (9..14), 'parallel dispatch to a private using >>! works');
32
}
33
0 commit comments