Skip to content

Commit

Permalink
Fix IO::Path.new with 0 allomorph
Browse files Browse the repository at this point in the history
  • Loading branch information
zoffixznet committed Jul 16, 2017
1 parent c040f1a commit 45cd1a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/IO/Path.pm
Expand Up @@ -13,7 +13,7 @@ my class IO::Path is Cool does IO {
}

submethod BUILD(:$!path!, :$!SPEC!, :$!CWD! --> Nil) {
nqp::unless($!path,
nqp::unless(nqp::chars($!path), # could be an IntStr, so check chars
die "Must specify something as a path: did you mean '.' for the current directory?"
);
nqp::if(
Expand Down

0 comments on commit 45cd1a9

Please sign in to comment.