mirror of
https://github.com/Mercury-Language/mercury.git
synced 2025-12-19 15:54:18 +00:00
Estimated hours taken: 2 compiler/mercury_to_mercury.m: Fix a bug or two that showed up when exporting a func/0 with a func declaration that combines types and modes. It was incorrectly (a) printing the determinism in the type declaration, not just the mode declaration and (b) printing the determinism in the wrong place in the mode declaration. tests/valid/Mmake.m: tests/valid/func_int_bug.m: tests/valid/func_int_bug_main.m: Regression test for the above bug fix.
6 lines
99 B
Mathematica
6 lines
99 B
Mathematica
:- module func_int_bug.
|
|
:- interface.
|
|
:- func foo = (int::out) is det.
|
|
:- implementation.
|
|
foo = 6.
|