13 public int something () {
17 public const int FOO
= 2;
20 class Maman
.Bar
: Object
{
22 stdout
.printf (" %d", Foo
.VAL2
);
24 stdout
.printf (" %d", Foo
.VAL3
);
28 stdout
.printf (" %d", Foo
.VAL5
);
31 static void test_enums_0_conversion () {
35 static void test_enum_methods_constants () {
36 Fooish x
= Fooish
.VAL1
;
37 stdout
.printf ("%d", x
.something ());
38 stdout
.printf ("%d", Fooish
.FOO
);
41 public static int main () {
42 stdout
.printf ("Enum Test: 1");
47 stdout
.printf (" 6\n");
49 test_enums_0_conversion ();
50 test_enum_methods_constants ();