mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-23 21:33:49 +00:00
Estimated hours taken: 0.25 tests/general/double_error2.m: tests/hard_coded/eqv_type_bug.m: Put the correct module name in the `:- module' declaration, to avoid an error from `mmc --generate-dependencies'.
32 lines
418 B
Mathematica
32 lines
418 B
Mathematica
:- module double_error2.
|
|
|
|
:- interface.
|
|
|
|
:- import_module io.
|
|
|
|
:- pred main(io__state, io__state).
|
|
:- mode main(di, uo) is det.
|
|
|
|
:- implementation.
|
|
|
|
:- import_module std_util, require.
|
|
|
|
main -->
|
|
(
|
|
{ semidet_succeed }
|
|
->
|
|
io__write_string("yes\n")
|
|
;
|
|
io__progname("foo", Name),
|
|
{ error(Name) }
|
|
),
|
|
(
|
|
{ semidet_succeed }
|
|
->
|
|
io__write_string("yes\n")
|
|
;
|
|
io__progname("bar", Name),
|
|
{ error(Name) }
|
|
).
|
|
|