Skip to content

Instantly share code, notes, and snippets.

@FROGGS
Created November 20, 2014 19:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FROGGS/3f7f5444d867055e946a to your computer and use it in GitHub Desktop.
Save FROGGS/3f7f5444d867055e946a to your computer and use it in GitHub Desktop.
diff --git a/src/core/IO/Path.pm b/src/core/IO/Path.pm
index b1e1678..bd199b3 100644
--- a/src/core/IO/Path.pm
+++ b/src/core/IO/Path.pm
@@ -10,11 +10,11 @@ my class IO::Path is Cool {
has %!parts;
multi method ACCEPTS(IO::Path:D: IO::Path:D \other) {
- nqp::p6bool(nqp::iseq_s($!path, nqp::unbox_s(other.path)));
+ nqp::p6bool(nqp::iseq_s($.abspath, nqp::unbox_s(other.path.abspath)));
}
multi method ACCEPTS(IO::Path:D: Mu \that) {
- nqp::p6bool(nqp::iseq_s($!path,nqp::unbox_s(IO::Path.new(|that).path)));
+ nqp::p6bool(nqp::iseq_s($.abspath,nqp::unbox_s(IO::Path.new(|that).abspath)));
}
submethod BUILD(:$!path! as Str, :$!SPEC!, :$!CWD! as Str) { }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment