-
-
Save atroxaper/5b450550bea5eb4915c617f74e3af844 to your computer and use it in GitHub Desktop.
Fix for Xliff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use soft; # works even without it, but documentation advises to use it in purpose to avoit inlining | |
$ UPD: forget about it. use soft only need in case of wrapping in runtime instead of compile time | |
# I just move the sub (and make it be a sub instead of a method) in separate declaration instead of anon sub | |
sub foo(|c) { | |
say 'Hi!'; | |
nextsame; | |
} | |
multi sub trait_mod:<is> (Method:D \m, :$query!) { | |
m.wrap(&foo); #just so | |
} | |
class B { | |
method b() is query { | |
say 'B'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment