Skip to content

Instantly share code, notes, and snippets.

@hoelzro
Created Mar 29, 2013
Embed
What would you like to do?
Attempt #1 to add postcircumfix:<( )> to Code
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