# New Ticket Created by  Timo Paulssen 
# Please include the string:  [perl #122929]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=122929 >


compare:

 >  perl6-m -e 'enum Bug ("foo" => -1, "A", "B"); say +A; say +B;'
 >  1
 >  2

and:

 > perl6-m -e 'enum Bug (foo => -1, "A", "B"); say +A; say +B;'
 > 0
 > 1

and see also:

 > perl6-m -e 'enum Bug ("foo" => -1, "A", "B"); say foo'
 > ===SORRY!=== Error while compiling -e
 > Undeclared routine:
 >     foo used at line 1

vs

 > perl6-m -e 'enum Bug (foo => -1, "A", "B"); say foo'
 > foo

I think this should at least warn or die, not silently drop an element 
from the list.

This bit me in my Cairo binding, as it requires an enum to start at -1 
and i accidentally quoted the LHS of the initial pair.

Reply via email to