mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-23 05:13:48 +00:00
Estimated hours taken: 0.1 tests/valid/Mmake: tests/valid/ho_inst.m: Test case to ensure that special_preds for higher order func insts are created and mode/determinism checked correctly.
19 lines
332 B
Mathematica
19 lines
332 B
Mathematica
% This test ensures that special preds for higher order func insts
|
|
% are generated and modechecked correctly.
|
|
% -- 18 Jun 1997 bromage
|
|
|
|
:- module ho_inst.
|
|
|
|
:- interface.
|
|
:- import_module int.
|
|
|
|
:- type foo == (func(int) = int).
|
|
|
|
:- type baz.
|
|
|
|
:- implementation.
|
|
|
|
:- type bar == (func(int) = int).
|
|
:- type baz == (func(int) = int).
|
|
|