Created
September 9, 2018 21:44
-
-
Save dmaestro/826f4a602136606b8db98a1c72785ef2 to your computer and use it in GitHub Desktop.
Delegation fails with "Cannot invoke this object" when this package is used
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
unit package TestD; | |
role R { | |
method foo( --> Int ) { ... } | |
} | |
class C { | |
has R $.delegate | |
handles * | |
is required; | |
} | |
class D does R { | |
has Int $.foo; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Place file in ./lib, run command:
The one-liner version works fine: