Skip to content

Commit

Permalink
RT #77982, spooky interactions between enums
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz committed Jan 30, 2012
1 parent b09f2a9 commit 56d7207
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions S12-enums/basic.t
Expand Up @@ -104,6 +104,14 @@ dies_ok({ my Color $c3 = "for the fail" }, 'enum as a type enforces checks');
ok bug71460 == 1, 'enum element of enum with double colons is in namespace';
}

# RT #77982
{
enum T1 <a b c>;
enum T2 <d e f>;
is T1.enums.keys.sort.join('|'), 'a|b|c', 'enum keys (1)';
is T2.enums.keys.sort.join('|'), 'd|e|f', 'enum keys (2)';
}

done;

# vim: ft=perl6

0 comments on commit 56d7207

Please sign in to comment.