> On 22 Jun 2015, at 11:41, Jonathan Stowe (via RT) > <perl6-bugs-follo...@perl.org> wrote: > > # New Ticket Created by Jonathan Stowe > # Please include the string: [perl #125455] > # in the subject line of all future correspondence about this issue. > # <URL: https://rt.perl.org/Ticket/Display.html?id=125455 > > > > Hi, > > class A { my $boo will leave { say "leaving boo" }; } > > gives rise to: > > Method 'add_phaser' not found for invocant of class 'A' > > I appreciate that this may not be implemented yet but it would probably be > nicer if it threw a NYI exception rather than just failing like that. > > Or, at option, moving the code in Block into a trait which can be applied to > classes as well :-)
I’m not sure what “will leave” on a class lexical would mean? I agree the error is LTA, but perhaps it shouldn’t be allowed at all? Liz