mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-18 02:43:40 +00:00
38 lines
816 B
Mathematica
38 lines
816 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 nested_module_bug.
|
|
|
|
:- interface.
|
|
|
|
:- import_module io.
|
|
|
|
:- pred main(io::di, io::uo) is det.
|
|
|
|
:- implementation.
|
|
|
|
:- import_module list.
|
|
:- import_module nested_module_bug.parser.
|
|
:- import_module parser.
|
|
|
|
main(!IO) :-
|
|
parse_tokens("foo", [1, 2], List),
|
|
io.write_line(List, !IO).
|
|
|
|
:- module nested_module_bug.parser.
|
|
|
|
:- interface.
|
|
|
|
:- pred parse_tokens(string::in, list(int)::in, list(int)::out) is det.
|
|
|
|
:- implementation.
|
|
|
|
parse_tokens(_, X, X).
|
|
|
|
:- end_module nested_module_bug.parser.
|