Wrong disambiguation of enum values vs. subroutines
Opened this issue · 0 comments
moritz commented
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