Skip to content

Commit

Permalink
Fix P6opaque: no such attribute '$!x'
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuomingliang committed Jan 9, 2015
1 parent a2cd0bd commit c13ab05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion perl6/point_class_add2
Expand Up @@ -12,7 +12,7 @@ class Point {
has num $.x;
has num $.y;
method new(num $x, num $y) {
my Point $self = nqp::create(self);
my Point $self := nqp::create(self);
nqp::bindattr_n($self, Point, '$!x', $x);
nqp::bindattr_n($self, Point, '$!y', $y);

Expand Down

0 comments on commit c13ab05

Please sign in to comment.