New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Behaviour of variable phasers LTA in class definition: #4337
Comments
From @jonathanstoweHi, 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 :-) |
From @jonathanstoweOn This is perl6 version 2015.06-9-gd474242 built on MoarVM version 2015.06-15-g7131eab for reference. |
From @lizmat
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 |
The RT System itself - Status changed from 'new' to 'open' |
From @jnthnOn Mon Jun 22 02:41:21 2015, jns+bc@gellyfish.co.uk wrote:
It was in theory implemented; in practice, an oversight meant it couldn't work. Fixed, and added test coverage in S04-declarations/will.t. |
@jnthn - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#125455 (status was 'resolved')
Searchable as RT125455$
The text was updated successfully, but these errors were encountered: