Skip to content

Commit

Permalink
remove Str.path leftovers in IO::Path.ACCEPTS
Browse files Browse the repository at this point in the history
./perl6 -e 'say $*CWD.ACCEPTS($*CWD)';
Method 'abspath' not found for invocant of class 'Str'
  in block <unit> at -e:1
  • Loading branch information
ugexe committed Jul 6, 2015
1 parent 01edd37 commit a59ab30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/IO/Path.pm
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ my class IO::Path is Cool {
has %!parts;

multi method ACCEPTS(IO::Path:D: IO::Path:D \other) {
nqp::p6bool(nqp::iseq_s($.abspath, nqp::unbox_s(other.path.abspath)));
nqp::p6bool(nqp::iseq_s($.abspath, nqp::unbox_s(other.abspath)));
}

multi method ACCEPTS(IO::Path:D: Mu \that) {
Expand Down

0 comments on commit a59ab30

Please sign in to comment.