Skip to content

Instantly share code, notes, and snippets.

@vrurg
Created March 25, 2022 20:48
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 vrurg/eaa03dbc2ceb385d8a6cbb4f1a82b721 to your computer and use it in GitHub Desktop.
Save vrurg/eaa03dbc2ceb385d8a6cbb4f1a82b721 to your computer and use it in GitHub Desktop.
unit class Bar;
use Foo;
also does Foo;
unit role Foo;
my role RA {
method fails {
say "But OK?";
}
}
my class C does RA {
}
has $.obj = C.new;
method test {
$!obj.fails;
}
use lib $?FILE.IO.parent(1);
use Bar;
Bar.new.test;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment