Files
mercury/tests/invalid/errors2.err_exp
Zoltan Somogyi 64b3e74266 A script to compare actual and expected error outputs from the
Estimated hours taken: 0.5

runtests:
	A script to compare actual and expected error outputs from the
	compiler.

Mmake:
	Don't test types.m, since we don't pass it, and lambda_type_bad,
	since the tested code is no longer invalid.

*.err_exp:
	The expected error outputs.
1996-11-04 07:15:18 +00:00

58 lines
3.3 KiB
Plaintext

errors2.m:009: Error: clause for predicate `errors2:bind_type_param/1'
errors2.m:009: without preceding `pred' declaration.
errors2.m:052: In clause for predicate `errors2:type_error_4/0':
errors2.m:052: Warning: variable `X' occurs only once in this scope.
errors2.m:059: In clause for predicate `errors2:type_error_5/0':
errors2.m:059: Warning: variable `X' occurs only once in this scope.
errors2.m:065: In clause for predicate `errors2:type_error_6/0':
errors2.m:065: Warning: variable `X' occurs only once in this scope.
errors2.m:070: In clause for predicate `errors2:type_error_7/0':
errors2.m:070: Warning: variable `Y' occurs only once in this scope.
errors2.m:071: In clause for predicate `errors2:type_error_7/0':
errors2.m:071: Warning: variables `Z, A, B' occur only once in this scope.
errors2.m:007: Error: no clauses for predicate `errors2:bind_type_param/2'
errors2.m:023: Error: no clauses for predicate `errors2:produce_string/1'
errors2.m:025: Error: no clauses for predicate `errors2:expect_int/1'
errors2.m:031: In clause for predicate `errors2:type_error/0':
errors2.m:031: in argument 1 of call to pred `expect_int/1':
errors2.m:031: type error: variable `X' has type `string',
errors2.m:031: expected type was `int'.
errors2.m:037: In clause for predicate `errors2:type_error_2/0':
errors2.m:037: type error in unification of variable `X'
errors2.m:037: and variable `Y'.
errors2.m:037: `X' has type `string',
errors2.m:037: `Y' has type `int'.
errors2.m:043: In clause for predicate `errors2:type_error_3/0':
errors2.m:043: in argument 1 of call to pred `expect_int/1':
errors2.m:043: type error: variable `Y' has type `string',
errors2.m:043: expected type was `int'.
errors2.m:052: In clause for predicate `errors2:type_error_4/0':
errors2.m:052: in argument 3 of functor `foo_functor/3':
errors2.m:052: type error in unification of argument
errors2.m:052: and constant `1.00000000000000'.
errors2.m:052: argument has type `string',
errors2.m:052: constant `1.00000000000000' has type `float'.
errors2.m:059: In clause for predicate `errors2:type_error_5/0':
errors2.m:059: in argument 3 of functor `foo_functor/3':
errors2.m:059: type error in unification of argument
errors2.m:059: and constant `1.00000000000000'.
errors2.m:059: argument has type `string',
errors2.m:059: constant `1.00000000000000' has type `float'.
errors2.m:065: In clause for predicate `errors2:type_error_6/0':
errors2.m:065: in argument 3 of functor `bar_functor/3':
errors2.m:065: type error in unification of argument
errors2.m:065: and constant `1.00000000000000'.
errors2.m:065: argument has type `string',
errors2.m:065: constant `1.00000000000000' has type `float'.
errors2.m:072: In clause for predicate `errors2:type_error_7/0':
errors2.m:072: in argument 1 of call to pred `expect_int/1':
errors2.m:072: type error: variable `C' has type `string',
errors2.m:072: expected type was `int'.
errors2.m:009: Inferred :- pred bind_type_param(int).
errors2.m:019: In clause for `unresolved_polymorphism':
errors2.m:019: in argument 1 of call to predicate `errors2:bind_type_param/2':
errors2.m:019: mode error: variable `Arg' has instantiatedness `free',
errors2.m:019: expected instantiatedness was `ground'.
errors2.m:009: Error: no mode declaration for predicate `errors2:bind_type_param/1'.
For more information, try recompiling with `-E'.