Skip to content

Instantly share code, notes, and snippets.

@atroxaper
Last active January 12, 2021 17:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save atroxaper/5b450550bea5eb4915c617f74e3af844 to your computer and use it in GitHub Desktop.
Save atroxaper/5b450550bea5eb4915c617f74e3af844 to your computer and use it in GitHub Desktop.
Fix for Xliff
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