Permalink
Browse files

We need PIO's to be Mu when passing

Otherwise we get a very strange error message, which is a type binding error
gone awry.
  • Loading branch information...
lizmat committed Nov 25, 2014
1 parent da34880 commit 63dd7322e54d3baafe8dc9d35d202bd1c343821b
Showing with 4 additions and 4 deletions.
  1. +2 −2 src/core/IO/Handle.pm
  2. +2 −2 src/core/io_operators.pm
View
@@ -9,8 +9,8 @@ my class IO::Handle does IO {
has int $.ins;
has int $!pipe;
submethod BUILD (:$!path,:$!PIO,:$!chomp,:$!nl) {
$!PIO := nqp::decont($!PIO);
submethod BUILD (:$!path,Mu :$PIO,:$!chomp,:$!nl) {
$!PIO := nqp::decont($PIO);
}
method pipe(IO::Handle:D: |c) {
View
@@ -87,7 +87,7 @@ multi sub open(
:$nl = "\n",
|c
) {
my $PIO;
my Mu $PIO;
# we want a pipe
if $p {
@@ -161,7 +161,7 @@ multi sub pipe(
my str $errpath; # what is this good for?
# TODO: catch error, and fail()
my $PIO := nqp::openpipe(
my Mu $PIO := nqp::openpipe(
nqp::unbox_s($path),
nqp::unbox_s($*CWD.chop),
$hash-without,

0 comments on commit 63dd732

Please sign in to comment.