source: tests/enum_tests/voidEnum.cfa @ 433e2c3

Last change on this file since 433e2c3 was 236f133, checked in by JiadaL <j82liang@…>, 4 months ago

Remove quasi_void for enums. The idea of quasi_void from Mike was to get around some resolution problem that enum pick function defines for Bounded over CfaEnum/TypedEnum?. But it is not clear that how often this can happen, and cfa might change the cast function scheme in the future. (change cost comparison scheme) Deprecate quasi_void for now so that enum traits looks cleaner without the dummy type for opaque enums

  • Property mode set to 100644
File size: 132 bytes
Line 
1#include <fstream.hfa>
2#include <enum.hfa>
3
4enum() E { A, B, C };
5int main() {
6    E e = A;
7    sout | e | posn( e ) | label( e );
8}
Note: See TracBrowser for help on using the repository browser.