mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-21 04:13:46 +00:00
Estimated hours taken: 0.25 compiler/unique_modes.m: The argument offset for higher-order calls was being set to 0, not 1 (the higher-order term is not included in the argument list). This resulted in the argument numbers in error messages for higher-order calls being one less than expected. tests/invalid/Mmakefile: tests/invalid/ho_unique_error.m: tests/invalid/ho_unique_error.err_exp: Test case.
15 lines
233 B
Mathematica
15 lines
233 B
Mathematica
:- module ho_unique_error.
|
|
|
|
:- interface.
|
|
|
|
:- import_module io.
|
|
|
|
:- pred call_ho(io__state::di, io__state::uo) is multi.
|
|
|
|
:- implementation.
|
|
|
|
call_ho -->
|
|
( call(io__write_string, "First\n")
|
|
; call(io__write_string, "Second\n")
|
|
).
|