Skip Menu |

This queue is for tickets about the Devel-Declare CPAN distribution.

Report information
The Basics
Id: 71529
Status: resolved
Priority: 0/
Queue: Devel-Declare

People
Owner: Nobody in particular
Requestors: ether [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.006007
Fixed in: (no value)



Subject: MooseX::Method::Signatures new parse error
This is likely a D::D issue not MXMS, so I'm filing this here too: https://rt.cpan.org/Ticket/Display.html?id=71528 Show quoted text
> After upgrading Devel::Declare to 0.006007 and B::Hooks::OP::Check to
0.19 (other things were upgraded at the same time, but this *appears* to be the only modules that are relevant), a method declaration must now have all its args on the same line: Show quoted text
> > This fails: > $ perl -MCarp::Always mxms.pl > Undefined subroutine &Foo::o called at mxms.pl line 10 > $ cat mxms.pl > { > package Foo; > use strict; > use warnings; > > use MooseX::Method::Signatures; > > method blah($this: Bool :$arg!, > Bool :$arg2) { > } > } > > But this works: > $ perl -MCarp::Always mxms.pl > $ cat mxms.pl > { > package Foo; > use strict; > use warnings; > > use MooseX::Method::Signatures; > > method blah($this: Bool :$arg!, Bool :$arg2) { > } > } > > > perl version is 5.8.8, i386 linux.
On Fri Oct 07 11:40:54 2011, ETHER wrote: Show quoted text
> This is likely a D::D issue not MXMS, so I'm filing this here too: > > https://rt.cpan.org/Ticket/Display.html?id=71528
Force-downgrading to DD 0.006006 got things working again: cpan F/FL/FLORA/Devel-Declare-0.006006.tar.gz ... $ perl -MCarp::Always mxms.pl $ cat mxms.pl { package Foo; use strict; use warnings; use MooseX::Method::Signatures; method blah($this: Bool :$arg!, Bool :$arg2) { } }
It's a bug in the change to toke_scan_str in 0.006007 that was meant to make it behave less surprisingly. It made it less surprising in one respect (that the string always appears to occupy a positive amount of the source code), but made it more likely to surprise in a different way (the prefix part of linestr can change). Fixed in 0.006008, just uploaded to CPAN.