Files
mercury/tests/invalid/html.err_exp
Zoltan Somogyi 4ebe95672d Don't crash on inst_name nested inside itself.
This fixes Mantis bug #528.

compiler/error_msg_inst.m:
    Since an inst_name IN may be used nested inside itself, as in
    IN(..., IN(...), ...), do not insist that both occurrences of IN
    in such cases lead to the insertion of a new entry in the inst name
    expansion map.

tests/invalid/html.{m,err_exp}:
    The Mantis test case.

tests/invalid/Mmakefile:
    Enable the Mantis test case.
2021-01-30 01:45:26 +11:00

49 lines
1.8 KiB
Plaintext

html.m:053: In clause for `init_body_elem =
html.m:053: out(html.non_empty_list((html.top_body_elem)))':
html.m:053: mode error: argument 1 had the wrong instantiatedness.
html.m:053: Final instantiatedness of `HeadVar__1' was `unique',
html.m:053: expected final instantiatedness was
html.m:053: named inst non_empty_list(
html.m:053: named inst top_body_elem,
html.m:053: which expands to
html.m:053: bound(
html.m:053: text(ground)
html.m:053: ;
html.m:053: ul(
html.m:053: named inst non_empty_list(
html.m:053: named inst li(
html.m:053: named inst top_body_elem
html.m:053: ),
html.m:053: which expands to
html.m:053: bound(
html.m:053: li(
html.m:053: named inst non_empty_list(
html.m:053: named inst top_body_elem
html.m:053: ),
html.m:053: which expands to
html.m:053: bound(
html.m:053: '[|]'(
html.m:053: named inst top_body_elem
html.m:053: )
html.m:053: )
html.m:053: )
html.m:053: )
html.m:053: ),
html.m:053: which expands to
html.m:053: bound(
html.m:053: '[|]'(
html.m:053: named inst li(
html.m:053: named inst top_body_elem
html.m:053: )
html.m:053: )
html.m:053: )
html.m:053: )
html.m:053: )
html.m:053: ),
html.m:053: which expands to
html.m:053: bound(
html.m:053: '[|]'(
html.m:053: named inst top_body_elem
html.m:053: )
html.m:053: ).