Files
mercury/tests/hard_coded/value_enum.exp
Peter Wang 6dabc1ce92 In the Java grade, an enumeration is represented by a class with a `value'
Branches: main

In the Java grade, an enumeration is represented by a class with a `value'
field, alongside constants named by the user.  A constant named `value'
would conflict with that field, so we rename it to `MR_value'.

compiler/ml_type_gen.m:
compiler/mlds_to_java.m:
        As above.

tests/hard_coded/Mmakefile:
tests/hard_coded/value_enum.exp:
tests/hard_coded/value_enum.m:
        Add test case.
2009-05-25 02:29:20 +00:00

2 lines
6 B
Plaintext