-
-
Save FROGGS/3f7f5444d867055e946a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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