Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove print(\x) multi candidate
fixes S16-io/print.t, which otherwise fails due to extra spaces from print(@A)
  • Loading branch information
moritz committed Aug 22, 2015
1 parent 2ebfe4d commit 5c0c7bc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/core/io_operators.pm
@@ -1,14 +1,14 @@
my class IO::ArgFiles { ... }

proto sub print(|) { * }
multi sub print(\x) {
$*OUT.print(x.Str);
}
multi sub print(*@args is rw) {
multi sub print(*@args) {
my $out := $*OUT;
$out.print(.Str) for @args;
Bool::True
}
multi sub print(Str:D \x) {
$*OUT.print(x);
}

proto sub say(|) { * }
multi sub say() { $*OUT.print-nl }
Expand Down

0 comments on commit 5c0c7bc

Please sign in to comment.