On Tue Jan 06 02:51:59 2009, masak wrote:
> Rakudo r34997 doesn't allow enum values to be written without their
> namespace:
> 
> $ perl6 -e 'enum Color <white gray black>; my Color $c = Color::white;
> say $c'
> 0
> $ perl6 -e 'enum Color <white gray black>; my Color $c = white'too few
> arguments passed (0) - 1 params expected
> [...]
> 
Just tried this and it works now; it has probably worked since we gained
the type registry. Added tests to S12-enums/basic.t to make sure it
keeps on working, though. :-)

Thanks,

Jonathan

Reply via email to