Created
March 29, 2013 17:39
-
-
Save hoelzro/5272331 to your computer and use it in GitHub Desktop.
Attempt #1 to add postcircumfix:<( )> to Code
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
method postcircumfix:<( )>(Code:D: $self, *@args, *%kwargs) { | |
my $dcself := nqp::decont($self); | |
my $code := nqp::getattr($dcself, Code, '$!do'); | |
$code(|@args, |%kwargs); | |
} | |
=begin ErrorMessage | |
Nominal type check failed for parameter '@args'; expected Positional but got Array instead | |
=end ErrorMessage |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment