Navigation Menu

Skip to content

Commit

Permalink
Add :U constraint to avoid type obj attr access.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Nov 2, 2013
1 parent a58b135 commit 3164ca4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vm/jvm/core/Threading.pm
Expand Up @@ -1048,7 +1048,7 @@ my class IO::Async::File {
nqp::p6bool(nqp::istrue($!PIO));
}

method slurp(:$bin, :enc($encoding)) {
method slurp(IO::Async::File:D: :$bin, :enc($encoding)) {
self.open(:r, :$bin) unless self.opened;
self.encoding($encoding) if $encoding.defined;

Expand Down

0 comments on commit 3164ca4

Please sign in to comment.