mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-28 15:54:18 +00:00
Estimated hours taken: 0.5 compiler/typecheck.m: Improve the error messages for syntax errors in lambda expressions and field selection/update expressions. tests/invalid/Mmakefile: tests/invalid/field_syntax_error.m: tests/invalid/field_syntax_error.err_exp: tests/invalid/lambda_syntax_error.m: tests/invalid/lambda_syntax_error.err_exp: Regression tests.
26 lines
1.8 KiB
Plaintext
26 lines
1.8 KiB
Plaintext
field_syntax_error.m:013: In clause for function `field_syntax_error:baz/1':
|
|
field_syntax_error.m:013: warning: variable `Bar' occurs only once in this scope.
|
|
field_syntax_error.m:015: In clause for function `field_syntax_error:baz3/1':
|
|
field_syntax_error.m:015: warning: variable `Bar' occurs only once in this scope.
|
|
field_syntax_error.m:013: In clause for function `field_syntax_error:baz/1':
|
|
field_syntax_error.m:013: in function result term of clause head:
|
|
field_syntax_error.m:013: error: invalid use of field selection operator (`^').
|
|
field_syntax_error.m:014: In clause for function `field_syntax_error:baz2/1':
|
|
field_syntax_error.m:014: in function result term of clause head:
|
|
field_syntax_error.m:014: error: invalid use of field selection operator (`^').
|
|
field_syntax_error.m:015: In clause for function `field_syntax_error:baz3/1':
|
|
field_syntax_error.m:015: in function result term of clause head:
|
|
field_syntax_error.m:015: error: invalid use of field update operator (`:=').
|
|
field_syntax_error.m:015: In clause for function `field_syntax_error:baz3/1':
|
|
field_syntax_error.m:015: in function result term of clause head:
|
|
field_syntax_error.m:015: in argument 1 of functor `:=/2':
|
|
field_syntax_error.m:015: error: invalid use of field selection operator (`^').
|
|
field_syntax_error.m:016: In clause for function `field_syntax_error:baz4/1':
|
|
field_syntax_error.m:016: in function result term of clause head:
|
|
field_syntax_error.m:016: error: invalid use of field update operator (`:=').
|
|
field_syntax_error.m:016: In clause for function `field_syntax_error:baz4/1':
|
|
field_syntax_error.m:016: in function result term of clause head:
|
|
field_syntax_error.m:016: in argument 1 of functor `:=/2':
|
|
field_syntax_error.m:016: error: invalid use of field selection operator (`^').
|
|
For more information, try recompiling with `-E'.
|