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

error message when declaring an enum of a type variable #2846

Open
p6rt opened this issue Aug 1, 2012 · 3 comments
Open

error message when declaring an enum of a type variable #2846

p6rt opened this issue Aug 1, 2012 · 3 comments
Labels
LTA Less Than Awesome; typically an error message that could be better

Comments

@p6rt
Copy link

p6rt commented Aug 1, 2012

Migrated from rt.perl.org#114370 (status was 'open')

Searchable as RT114370$

@p6rt
Copy link
Author

p6rt commented Aug 1, 2012

From @moritz

20​:08 < moritz> r​: role A[​::T] { my T enum B <C D> }
20​:08 <+p6eval> rakudo c1bfbb​: OUTPUT«===SORRY!===␤Cannot auto-generate
a proto method for 'Numeric' in the setting␤»

I don't think the spec requires it to live, but this looks like an
internal compiler error.

@p6rt
Copy link
Author

p6rt commented Jul 10, 2015

From @coke

On Wed Aug 01 11​:12​:13 2012, moritz wrote​:

20​:08 < moritz> r​: role A[​::T] { my T enum B <C D> }
20​:08 <+p6eval> rakudo c1bfbb​: OUTPUT«===SORRY!===␤Cannot auto-generate
a proto method for 'Numeric' in the setting␤»

I don't think the spec requires it to live, but this looks like an
internal compiler error.

No change. FYI, you get a different error with a specific type outside of a role delcaration​:

my Str enum B <C D>
Incompatible MROs in P6opaque rebless

--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Jul 10, 2015

The RT System itself - Status changed from 'new' to 'open'

@p6rt p6rt added the LTA Less Than Awesome; typically an error message that could be better label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
LTA Less Than Awesome; typically an error message that could be better
Projects
None yet
Development

No branches or pull requests

1 participant