9 $foo(42); # is sugar for
10 $foo.postcircumfix:<( )>(42);
14 # Example: Make $foo() a noop.
17 dies_ok { $foo() }, "basic sanity";
19 eval '$foo does role {
20 method postcircumfix:<( )> {}
22 lives_ok { $foo() }, "overriding postcircumfix:<( )> (1)", :todo<feature>;
25 # Example: Make $foo() modify another variable.
30 eval '$foo does role {
31 method postcircumfix:<( )> {
36 is $bar, 24, "overriding postcircumfix:<( )> (2)", :todo<feature>;
39 # .postcircumfix:<( )> is called even when you don't actually use ()s to
41 # foo; # is merely sugar for
46 # This body should never be called!
49 eval '&foo does role {
50 method postcircumfix:<( )> {
57 ".postcircumfix:<( )> is called even when you don't actually use ()s to call",