Files
mercury/tests/invalid/duplicate_modes.err_exp
Zoltan Somogyi e06106dfd6 Convert this module to four-space indentation to reduce the number
Estimated hours taken: 4
Branches: main

compiler/mode_errors.m:
	Convert this module to four-space indentation to reduce the number
	of bad line breaks. Fix some departures from our coding standards.

	Convert most of this module to use error_util.m to format error
	messages instead just io__write_strings. (Converting the rest
	will require some changes in hlds_out.m.)

compiler/error_util.m:
	Provide the ability to add prefixes in front of following format
	components, and the ability to influence the indentation level
	when starting a new line. This is needed to support some of the new
	uses of error_util in mode_errors.m.

compiler/state_var.m:
	Remove a redundant format component that causes a minor test case
	discrepancy with the new code in error_util.m.

compiler/modes.m:
	Minor style fixes.

tests/invalid/*.err_exp:
	Expect better format in mode error messages.
2005-08-18 07:58:09 +00:00

28 lines
1.6 KiB
Plaintext

duplicate_modes.m:001: Warning: interface for module `duplicate_modes' does not
duplicate_modes.m:001: export anything.
duplicate_modes.m:001: To be useful, a module should export something. A file
duplicate_modes.m:001: should contain at least one declaration other than
duplicate_modes.m:001: `:- import_module' in its interface section(s). This
duplicate_modes.m:001: would normally be a `:- pred', `:- func', `:- type',
duplicate_modes.m:001: `:- inst' or `:- mode' declaration.
duplicate_modes.m:008: In mode declarations for predicate
duplicate_modes.m:008: `duplicate_modes.q/2':
duplicate_modes.m:008: error: duplicate mode declaration.
duplicate_modes.m:008: Modes `q(in, out) is det' and
duplicate_modes.m:008: `q((ground >> ground), (free >> ground)) is det' are
duplicate_modes.m:008: indistinguishable.
duplicate_modes.m:009: Here is the conflicting mode declaration.
duplicate_modes.m:008: In mode declarations for predicate
duplicate_modes.m:008: `duplicate_modes.q/2':
duplicate_modes.m:008: error: duplicate mode declaration.
duplicate_modes.m:008: Modes `q(in, out) is det' and
duplicate_modes.m:008: `q((ground >> ground), (free >> ground)) is det' are
duplicate_modes.m:008: indistinguishable.
duplicate_modes.m:010: Here is the conflicting mode declaration.
duplicate_modes.m:014: In mode declarations for predicate
duplicate_modes.m:014: `duplicate_modes.r/2':
duplicate_modes.m:014: error: duplicate mode declaration.
duplicate_modes.m:014: Modes `r(in, in) is semidet' and `r(in, in) is det'
duplicate_modes.m:014: are indistinguishable.
duplicate_modes.m:015: Here is the conflicting mode declaration.