Skip to content

Instantly share code, notes, and snippets.

@Tux
Created April 3, 2015 16:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Tux/540b7068ec54f6ca8a54 to your computer and use it in GitHub Desktop.
Save Tux/540b7068ec54f6ca8a54 to your computer and use it in GitHub Desktop.
$ cat T.pl
use v6;
class C {
method foo_hr (IO:D $in, Int $off = 0, Bool :$meta = True) {
return self.foo($in, $off, :$meta, hr => True);
}
method foo (IO:D $in, Int $off is copy = 0, Bool :$meta = True, Bool :$hr = False) {
return True;
}
}
C.new.foo.say($*IN);
$ Too few positionals passed; expected 2 or 3 arguments but got 1
in method foo at T.pl:8
in block <unit> at T.pl:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment