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
| my package EXPORTHOW { | |
| class SUPERSEDE::class is Metamodel::ClassHOW { | |
| method is_trusted(Mu $obj, Mu $claimant) { | |
| $claimant.^compute_mro(); # force it to be computed for typecheck below | |
| callsame() || $claimant.^type_check($obj.WHAT) | |
| } | |
| } | |
| } |
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 M; | |
| class A { method !p() { say 'yay' } } | |
| class B is A { method x() { self!A::p } } | |
| B.x; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment