mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-18 02:43:40 +00:00
Estimated hours taken: 0.1
compiler/intermod.m
Use the declared argmodes or procedures when gathering modes to put
into .opt files, since these are the modes that are written to the
.opt file.
tests/valid/intermod_lambda.m
tests/valid/intermod_lambda2.m
Updated these to act as a regression test.
14 lines
321 B
Mathematica
14 lines
321 B
Mathematica
% Regression test for resolving overloading of higher-order terms
|
|
% exported using inter-module optimization.
|
|
% This is also a regression test to check that local modes are put
|
|
% in the .opt files.
|
|
:- module intermod_lambda.
|
|
|
|
:- interface.
|
|
|
|
:- type foo. % not used
|
|
|
|
:- implementation.
|
|
|
|
:- import_module intermod_lambda2.
|