Skip to content
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

Not getting the nice "Illegally post-declared type" error for types with :: in them in Rakudo #5024

Open
p6rt opened this issue Jan 8, 2016 · 1 comment
Labels

Comments

@p6rt
Copy link

p6rt commented Jan 8, 2016

Migrated from rt.perl.org#127214 (status was 'new')

Searchable as RT127214$

@p6rt
Copy link
Author

p6rt commented Jan 8, 2016

From @masak

<masak> m​: class C { has $.x = D.new }; class D {}
<camelia> rakudo-moar af8798​: OUTPUT«===SORRY!=== Error while
compiling /tmp/9mEQAw_f9T␤Illegally post-declared type​:␤ D used at
line 1␤␤»
<masak> m​: class C { has $.x = D​::E.new }; class D​::E {}; C.new
<camelia> rakudo-moar af8798​: OUTPUT«Could not find symbol '&E' [...]
* masak submits rakudobug

The second line gets through compilation and all the way to runtime,
where it fails. It would be much nicer to get the same error message
about illegally post-declared types as in the first line.

@p6rt p6rt added the Bug label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant