mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-25 14:24:11 +00:00
Estimated hours taken: 3 Branches: main, release compiler/special_pred.m: Ensure that initialisation special preds are type checked (without this, the compiler will abort during purity checking if the user defines a solver type, but not its initialisation predicate.) tests/invalid/Mmakefile: tests/invalid/missing_init_pred.m: tests/invalid/missing_init_pred.err_exp: Added a test case.
28 lines
842 B
Mathematica
28 lines
842 B
Mathematica
%-----------------------------------------------------------------------------%
|
|
% missing_init_pred.m
|
|
% Ralph Becket <rafe@cs.mu.oz.au>
|
|
% Wed Mar 9 12:24:52 EST 2005
|
|
% vim: ft=mercury ts=4 sw=4 et wm=0 tw=0
|
|
%
|
|
%-----------------------------------------------------------------------------%
|
|
|
|
:- module missing_init_pred.
|
|
|
|
:- interface.
|
|
|
|
:- solver type t.
|
|
|
|
%-----------------------------------------------------------------------------%
|
|
%-----------------------------------------------------------------------------%
|
|
|
|
:- implementation.
|
|
|
|
:- solver type t
|
|
where representation is int,
|
|
initialisation is init,
|
|
ground is ground,
|
|
any is ground.
|
|
|
|
%-----------------------------------------------------------------------------%
|
|
%-----------------------------------------------------------------------------%
|