Skip to content

Commit

Permalink
Fix Pair.new w/ wrong args giving factually incorrect error
Browse files Browse the repository at this point in the history
  • Loading branch information
zoffixznet committed May 21, 2017
1 parent 06cd0bc commit 1c16bf2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/Pair.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ my class Pair does Associative {
has $.key is default(Nil);
has $.value is rw is default(Nil);

proto method new(|) { * }
multi method new(Pair: Cool:D \key, Mu \value) {
my \p := nqp::p6bindattrinvres(
nqp::create(self),Pair,'$!key',nqp::decont(key));
Expand Down

0 comments on commit 1c16bf2

Please sign in to comment.