Created
April 21, 2015 21:36
-
-
Save jnthn/d8c27741c7b0d25f340d 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
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 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 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