Files
mercury/tests/submodules/accessibility_t1.m
Zoltan Somogyi eb6617c175 Rename X's aux modules as X_helper_N in submodules.
tests/submodules/*.m:
    Rename modules as mentioned above.

    Indent nested submodules to make them stand out.

    Group foreign_procs by what predicate they implement, not by
    their implementation language.

tests/submodules/*.m:
tests/submodules/*.err_exp:
tests/submodules/Mmakefile:
tests/submodules/Mercury.options:
    Update all references to the moved modules.
2023-06-19 22:16:36 +02:00

32 lines
811 B
Mathematica

%---------------------------------------------------------------------------%
% vim: ts=4 sw=4 et ft=mercury
%---------------------------------------------------------------------------%
%
% A regression test -- the compiler issues a spurious error for this test case.
:- module accessibility_t1.
:- interface.
:- import_module io.
:- pred main(io::di, io::uo) is det.
:- implementation.
:- import_module accessibility_t1_helper_1.
:- module nested.
:- interface.
% This line should _not_ be needed,
% since it already occurs in the containing module.
% :- import_module accessibility_t1_helper_1.
:- import_module accessibility_t1_helper_1.sub1.
:- type t3 == accessibility_t1_helper_1.sub1.t2.
:- end_module nested.
main(!IO) :-
io.write_string("Hello.\n", !IO).