Created
April 3, 2015 16:48
-
-
Save Tux/540b7068ec54f6ca8a54 to your computer and use it in GitHub Desktop.
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
$ 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