For information, it segfaults -- if pre-compiled -- when modifying the
code snippet this way:
+sub call-with(|args) { callwith(|args) }
+
multi sub trait_mod:(Routine $routine, :$wrapped!) {
- $routine.wrap: -> |args { callwith(|args) }
+ $routine.wrap: -> |args { ca
# New Ticket Created by
# Please include the string: [perl #125634]
# in the subject line of all future correspondence about this issue.
# https://rt.perl.org/Ticket/Display.html?id=125634 >
How to reproduce:
cdc:~/golf$ cat lib/Golf.pm6
unit module Golf;
multi sub trait_mod:(