mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-22 12:53:47 +00:00
compiler/typecheck_clauses.m:
When typechecking coerce expressions, don't call
type_assign_fresh_type_var a second time for the same variable.
tests/invalid/Mmakefile:
tests/invalid/coerce_same_var.err_exp:
tests/invalid/coerce_same_var.m:
Add test case.
217 B
217 B
coerce_same_var.m:017: In clause for predicate `main'/2:
coerce_same_var.m:017: error: the type of `X' is unresolved; cannot coerce
coerce_same_var.m:017: from `V_2' to `V_2'.
coerce_same_var.m:017: error: the type of `X' is unresolved; cannot coerce
coerce_same_var.m:017: from `V_2' to `V_2'.