mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-16 18:03:36 +00:00
32 lines
556 B
Mathematica
32 lines
556 B
Mathematica
%---------------------------------------------------------------------------%
|
|
% vim: ts=4 sw=4 et ft=mercury
|
|
%---------------------------------------------------------------------------%
|
|
|
|
:- module import_in_parent.
|
|
|
|
:- interface.
|
|
|
|
:- import_module bool.
|
|
|
|
:- type foo.
|
|
|
|
:- implementation.
|
|
|
|
:- type foo
|
|
---> foo.
|
|
|
|
:- module import_in_parent.sub.
|
|
|
|
:- interface.
|
|
|
|
:- pred foo(bool::in) is semidet.
|
|
|
|
:- implementation.
|
|
|
|
foo(X) :-
|
|
bool.foo(X).
|
|
|
|
:- end_module import_in_parent.sub.
|
|
|
|
:- end_module import_in_parent.
|