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
Rakudo can't handle A declared after A::B was declared in an included module #666
Comments
From @masakIn Rakudo r36143, the following works: $ perl6 -e 'role A::B {}; class A {}' # works But put the role declaration in its own module file A/B.pm: $ cat A/B.pm The problem is somehow tied to 'use', becuase this works: $ perl6 -e 'role A::B {}; class A {}' # works All of the above also holds when A::B is declared as being a class, |
From @chrisdolanConsider the following two files: --- Foo/Bar/Baz.pm --- --- Foo/Bar.pm --- When you load Foo::Bar, you get: I think this is because 'use'ing Foo::Bar::Baz vivifies the Foo::Bar This problem began sometime in the last month. |
From @chrisdolanAhh, It looks like my report below is a duplicate of On Feb 7, 2009, at 4:10 PM, perl6 via RT wrote:
|
From @masakChris (>):
No problem. Better to over-report than to under-report. Also, nobody // Carl |
The RT System itself - Status changed from 'new' to 'open' |
From @chrisdolanThe following reproduces the bug more simply: perl6 -e 'BEGIN {class Foo::Bar::Baz {}}; class Foo::Bar {}' I'm working on a patch at the Frozen Perl hackathon now... |
From @chrisdolanI wrote a simple solution that works, but I'd like someone more PIR- http://github.com/chrisdolan/rakudo/tree/package-redeclaration (5d6cec9) --- a/src/parser/methods.pir + no_namespace: |
From @moritzOn Sun Feb 08 11:42:32 2009, chris@chrisdolan.net wrote:
For the record, this works with this command: Chirs also added tests to t/spec/S12-class/basic.t, so we can close this Thanks for the good work, |
The RT System itself - Status changed from 'new' to 'open' |
@moritz - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#62898 (status was 'resolved')
Searchable as RT62898$
The text was updated successfully, but these errors were encountered: