mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-18 02:43:40 +00:00
40 lines
838 B
Mathematica
40 lines
838 B
Mathematica
%---------------------------------------------------------------------------%
|
|
% vim: ts=4 sw=4 et ft=mercury
|
|
%---------------------------------------------------------------------------%
|
|
%
|
|
% Test case for spurious errors if there are predicates
|
|
% module1.p and module2.module1.p.
|
|
%
|
|
|
|
:- module intermod_bug_nested.
|
|
|
|
:- interface.
|
|
|
|
:- import_module io.
|
|
|
|
:- pred main(io::di, io::uo) is det.
|
|
|
|
:- implementation.
|
|
|
|
:- import_module intermod_bug_nested.parser.
|
|
:- import_module list.
|
|
|
|
main(!IO) :-
|
|
parse_tokens("foo", [1, 2], List),
|
|
io.write_line(List, !IO).
|
|
|
|
:- module intermod_bug_nested.parser.
|
|
|
|
:- interface.
|
|
|
|
:- pred parse_tokens(string::in, list(int)::in,
|
|
list(int)::out) is det.
|
|
|
|
:- implementation.
|
|
|
|
:- import_module term_io.
|
|
|
|
parse_tokens(_, X, X).
|
|
|
|
:- end_module intermod_bug_nested.parser.
|