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
Lexicals declared outside of class not visible in the class #489
Comments
From @masakIt feels a bit odd that the below two one-liners don't work the same $ perl6 -e 'class A { my $a = method { say self.WHAT }; method x { $ perl6 -e 'my $a = method { say self.WHAT }; class A { method x { |
From @jnthnOn Sun Dec 14 02:26:54 2008, masak wrote:
Actually it's a different problem. Because this works: my $a = method { say self.WHAT }; class A { method x($m) { self.$m() } It's actually because lexicals declared in the outer scope of a class Thanks, Jonathan |
The RT System itself - Status changed from 'new' to 'open' |
From dave.whipp@gmail.comexample: <dwhipp>pugs: my $global = 1; class A { method foo { say "foo = <dwhipp>rakudo: my $global = 1; class A { method foo { say "foo = |
From @pmichaudThis is a duplicate of RT #61356, merging tickets. Pm |
The RT System itself - Status changed from 'new' to 'open' |
From @moritzThis now works (as of 9d76f3), fixed by jnthn++, and unfudged tests. |
@moritz - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#61356 (status was 'resolved')
Searchable as RT61356$
The text was updated successfully, but these errors were encountered: