Files
mercury/tests/invalid/lambda_syntax_error.err_exp
Zoltan Somogyi cd5afecd71 Improve some diagnostics.
compiler/superhomogeneous.m:
    Add color to some diagnostics. (Unfortunately, only one is tested
    currently by the test suite.)

compiler/add_pragma.m:
    Improve the wording of a diagnostic.

tests/invalid/invalid_export_detism.err_exp:
tests/invalid/lambda_syntax_error.err_exp:
    Expect updated diagnostics.
2024-05-30 17:26:12 +10:00

2.5 KiB

lambda_syntax_error.m:016: Error: the clause head part of a lambda expression
lambda_syntax_error.m:016: must have one of the following forms:
lambda_syntax_error.m:016: `pred(<args>) is <determinism>'
lambda_syntax_error.m:016: `any_pred(<args>) is <determinism>'
lambda_syntax_error.m:016: `func(<args>) = <retarg> is <determinism>'
lambda_syntax_error.m:016: `any_func(<args>) = <retarg> is <determinism>'
lambda_syntax_error.m:016: `func(<args>) = <retarg>'
lambda_syntax_error.m:016: `any_func(<args>) = <retarg>',
lambda_syntax_error.m:016: or one of those forms preceded by either
lambda_syntax_error.m:016: `semipure' or `impure'.
lambda_syntax_error.m:017: Error: the clause head part of a lambda expression
lambda_syntax_error.m:017: must have one of the following forms:
lambda_syntax_error.m:017: `pred(<args>) is <determinism>'
lambda_syntax_error.m:017: `any_pred(<args>) is <determinism>'
lambda_syntax_error.m:017: `func(<args>) = <retarg> is <determinism>'
lambda_syntax_error.m:017: `any_func(<args>) = <retarg> is <determinism>'
lambda_syntax_error.m:017: `func(<args>) = <retarg>'
lambda_syntax_error.m:017: `any_func(<args>) = <retarg>',
lambda_syntax_error.m:017: or one of those forms preceded by either
lambda_syntax_error.m:017: `semipure' or `impure'.
lambda_syntax_error.m:018: Error: in head of predicate lambda expression: none
lambda_syntax_error.m:018: of the arguments have modes.
lambda_syntax_error.m:019: Error: the clause head part of a lambda expression
lambda_syntax_error.m:019: must have one of the following forms:
lambda_syntax_error.m:019: `pred(<args>) is <determinism>'
lambda_syntax_error.m:019: `any_pred(<args>) is <determinism>'
lambda_syntax_error.m:019: `func(<args>) = <retarg> is <determinism>'
lambda_syntax_error.m:019: `any_func(<args>) = <retarg> is <determinism>'
lambda_syntax_error.m:019: `func(<args>) = <retarg>'
lambda_syntax_error.m:019: `any_func(<args>) = <retarg>',
lambda_syntax_error.m:019: or one of those forms preceded by either
lambda_syntax_error.m:019: `semipure' or `impure'.