# 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 :-)