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
[BUG w/ tests] our values declaration #2498
Comments
From slunski@gmail.comHallo, I have problem with our declaration with initialization on nom branch, Star Error message is: Method 'STORE' not found for invocant of class 'Any' in <anon> at What makes problems: our %h = { 'a' => 1, 'b' => 2 } class A { our %h = { 'a' => 1, 'b' => 2 } } This work OK: our %a so our-scalar + initialization works OK. Probably there is another bug (in Star and nom): class A { has %!h = { 'a' => 1, 'b' => 2 } ; my @a = %!h.keys } gives: Inside BEGIN same errors: class A { BEGIN {has %!h = { 'a' => 1, 'b' => 2 } ; my @a = %!h.keys} } But this works: class A { has %!h = { 'a' => 1, 'b' => 2 } ; method aa {my @a = %!h.keys} } And 'my' version works too: class A { my %h = { 'a' => 1, 'b' => 2 } ; my @a = %h.keys } So problem is that code in class but outside methods do not work. Maybe it class A { has %!h = { 'a' => 1, 'b' => 2 } } Best regards, Sylwester Lunski -- |
From @FROGGSAdded tests: Raku/roast@8c3db86165 |
The RT System itself - Status changed from 'new' to 'open' |
From @FROGGSFixed: |
@FROGGS - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#100560 (status was 'resolved')
Searchable as RT100560$
The text was updated successfully, but these errors were encountered: