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


See the following results.

perl6 -e 'my Int enum day <Sun Mon Tue Wed Thu Fri Sat>; my day $day = 0;'
Type check failed in assignment to $day; expected day but got Int (0)
  in block <unit> at -e line 1


The above behavior is different from the explanation of the spec page's one.
https://design.perl6.org/S12.html#Value_Generation

Reply via email to