summaryrefslogtreecommitdiff
path: root/t/op/method.t
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2001-12-01 00:46:58 +0100
committerJarkko Hietaniemi <jhi@iki.fi>2001-12-01 15:55:51 +0000
commita397c3d90f2714d67e8c8dc3e4dfc0b40f61e44e (patch)
tree2e63f37e1a1d6c2ed000a02c9acbec62496904bb /t/op/method.t
parentfdf1c2a96851c109301f03c196f94876286980ed (diff)
downloadperl-a397c3d90f2714d67e8c8dc3e4dfc0b40f61e44e.tar.gz
parser panics on lvalue methods
Message-ID: <20011130234658.A717@rafael> p4raw-id: //depot/perl@13404
Diffstat (limited to 't/op/method.t')
-rwxr-xr-xt/op/method.t11
1 files changed, 10 insertions, 1 deletions
diff --git a/t/op/method.t b/t/op/method.t
index 4e4ac97c19..0d4e09b10a 100755
--- a/t/op/method.t
+++ b/t/op/method.t
@@ -9,7 +9,7 @@ BEGIN {
@INC = '../lib';
}
-print "1..72\n";
+print "1..73\n";
@A::ISA = 'B';
@B::ISA = 'C';
@@ -240,4 +240,13 @@ test( Foo->boogie(), "yes, sir!");
eval { sub AUTOLOAD { "ok ", shift, "\n"; } };
print nonsuch(++$cnt);
+# Bug ID 20010902.002
+test (
+ eval q[
+ $x = 'x';
+ sub Foo::x : lvalue { $x }
+ Foo->$x = 'ok';
+ ] || $@, 'ok'
+);
+
print "# $cnt tests completed\n";