Created
March 25, 2022 20:48
-
-
Save vrurg/eaa03dbc2ceb385d8a6cbb4f1a82b721 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
unit class Bar; | |
use Foo; | |
also does Foo; |
This file contains hidden or 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
unit role Foo; | |
my role RA { | |
method fails { | |
say "But OK?"; | |
} | |
} | |
my class C does RA { | |
} | |
has $.obj = C.new; | |
method test { | |
$!obj.fails; | |
} |
This file contains hidden or 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 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