mirror of
https://github.com/Mercury-Language/mercury.git
synced 2025-12-19 07:45:09 +00:00
Estimated hours taken: 1
Change from using `:- assertion' to `:- promise'.
invalid/assert_in_interface.err_exp:
invalid/assert_in_interface.m:
invalid/tricky_assert1.err_exp:
invalid/tricky_assert1.m:
valid/tricky_assert2.m:
Make the required changes.
9 lines
238 B
Mathematica
9 lines
238 B
Mathematica
% assertion in the interface refers to a predicate which is
|
|
% imported in the implementation of the module.
|
|
:- module assert_in_interface.
|
|
:- interface.
|
|
:- promise all [X, Y] list__last(X, Y).
|
|
|
|
:- implementation.
|
|
:- import_module list.
|