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

Wrong disambiguation of enum values vs. subroutines #103

Open
moritz opened this issue Jan 17, 2012 · 0 comments
Open

Wrong disambiguation of enum values vs. subroutines #103

moritz opened this issue Jan 17, 2012 · 0 comments

Comments

@moritz
Copy link
Collaborator

moritz commented Jan 17, 2012

11:47 < moritz> perl6: enum A <b c>; sub b() { 'sub' }; say b(); say b
11:47 <+p6eval> ..niecza v13-291-gca7eb73: OUTPUT«Unhandled exception: No value
            for parameter $key in CommonEnum.postcircumfix:<( )>␤  at
            /home/p6eval/niecza/lib/CORE.setting line 0
            (CommonEnum.postcircumfix:<( )> @ 1) ␤  at /tmp/f4au61f2Nq line 1
            (mainline @ 2) ␤  at /home/p6eval/niecza/lib/CORE.setting…

Should call the function &b, not invoke the enum value, according to http://perlcabal.org/syn/S12.html#Miscellaneous_Rules

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

No branches or pull requests

1 participant