develooper Front page | perl.perl5.porters | Postings from November 2008

Addendum to bug #38809: fix assertion failure, more tests

Thread Next
From:
Vincent Pit
Date:
November 26, 2008 09:47
Subject:
Addendum to bug #38809: fix assertion failure, more tests
Message ID:
492D8C3C.1010003@profvince.com
One of the assertions I added when solving #38809 fails with "do {
return do { 1 } }", i.e. when the inner do block gets reaped at compile
time. But there was no bug in this case to begin with, so we can just
switch the assertion for a plain test. I added a regression test for
this, but also some tests that checks that "do { return do { 1; @a }, do
{ 1; @b } }" returns as expected @a, @b in list context and the length
of @b in scalar context.
Patch against blead, tested ok.

Vincent.

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About