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

LTA internal error message when declaring anonymous enum with '::' in Rakudo #3481

Closed
p6rt opened this issue Aug 12, 2014 · 4 comments
Closed

Comments

@p6rt
Copy link

p6rt commented Aug 12, 2014

Migrated from rt.perl.org#122514 (status was 'resolved')

Searchable as RT122514$

@p6rt
Copy link
Author

p6rt commented Aug 12, 2014

From @masak

<cognome> r​: enum < un >; say un
<camelia> rakudo-moar 0c42c1​: OUTPUT«===SORRY!=== Error while
compiling /tmp/tmpfile␤Undeclared routine​:␤ un used [...]
<jnthn> cognome​: anonymous enum doesn't install symbols
<cognome> r​: enum E < un >; say un
<camelia> rakudo-{parrot,jvm,moar} 0c42c1​: OUTPUT«un␤»
<masak> m​: enum :​: <un>
<camelia> rakudo-moar 0c42c1​: OUTPUT«===SORRY!===␤MVMArray​: Can't pop
from an empty array␤»
* masak submits rakudobug

I see nothing wrong with declaring an 'enum :​:' like that. (Though in
sink context it'd be a bit meaningless, I guess.) Anyway, shouldn't
give an internal error like that.

@p6rt
Copy link
Author

p6rt commented Oct 28, 2014

From @usev6

This works now​:

$ perl6 -e 'enum :​: <un>; say ~un'
un

There is a passing test in S12-enums/misc.t added with commit Raku/roast@ef7e1258e5

I'm closing this ticket now.

1 similar comment
@p6rt
Copy link
Author

p6rt commented Oct 28, 2014

From @usev6

This works now​:

$ perl6 -e 'enum :​: <un>; say ~un'
un

There is a passing test in S12-enums/misc.t added with commit Raku/roast@ef7e1258e5

I'm closing this ticket now.

@p6rt
Copy link
Author

p6rt commented Oct 28, 2014

@usev6 - Status changed from 'new' to 'resolved'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant