mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-22 21:03:53 +00:00
Estimated hours taken: 0.5 Fix a bug with quoting of module-qualified terms in .opt files. Add a test case for this bug. compiler/hlds_out.m: Add a version of `hlds_out__write_functor' which has a `needs_quotes' argument. Call this new predicate from `hlds_out__write_qualified_functor' to ensure that functors are properly quoted after the `:'. compiler/mercury_to_mercury.m: Export `mercury_output_term/6' so it can be called by `hlds_out__write_functor/7'. tests/valid/Mmakefile: Add the new test case. tests/valid/intermod_quote.m: tests/valid/intermod_quote2.m: New test case for this bug.
12 lines
234 B
Mathematica
12 lines
234 B
Mathematica
% Regression test to ensure that terms are properly quoted in the intermodule
|
|
% .opt file.
|
|
:- module intermod_quote.
|
|
:- interface.
|
|
|
|
:- type foo. % Not used.
|
|
|
|
:- implementation.
|
|
:- import_module intermod_quote2.
|
|
|
|
:- type foo ---> foo.
|