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' variables in roles can't be accessed from the outside #1926
Comments
From @moritzFails with roles: 18:16 <@moritz_> rakudo: role Foo { our $pi = 3 }; say $Foo::pi Works with modules: 18:16 <@moritz_> rakudo: module Foo { our $pi = 3 }; say $Foo::pi |
@coke - Status changed from 'new' to 'open' |
From @cokeOn Sat Jul 10 09:18:02 2010, moritz wrote:
This now says: 20:52 < [Coke]> rakudo: role Foo { our $pi = 3 }; say $Foo::pi -- |
From @FROGGSstill: <FROGGS> rakudo: role Foo { our $pi = 3 }; say $Foo::pi added test: |
From @jnthnOn Sat Jul 10 09:18:02 2010, moritz wrote:
For reasons now described in S14, this is disallowed. It's also caught and reported at compile time. Test covering that in S14-roles/namespaced.t. |
@jnthn - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#76450 (status was 'resolved')
Searchable as RT76450$
The text was updated successfully, but these errors were encountered: