Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
using statement modifiers
  • Loading branch information
Stevan Little committed May 14, 2013
1 parent b575655 commit 7eba5f3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions t/005-classes/001-basic.t
Expand Up @@ -5,12 +5,12 @@ class Point {
has $!y = 0;

method x ($x?) {
if ($x) { $!x = $x }
$!x = $x if $x.defined;
$!x
}

method y ($y?) {
if ($y) { $!y = $y }
$!y = $y if $y.defined;
$!y
}

Expand All @@ -23,7 +23,7 @@ class Point3D extends Point {
has $!z = 0;

method z ($z?) {
if ($z) { $!z = $z }
$!z = $z if $z.defined;
$!z
}

Expand Down

0 comments on commit 7eba5f3

Please sign in to comment.