mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-15 17:33:38 +00:00
compiler/parse_type_defn.m:
As above.
tests/invalid/field_syntax_error.{m,err_exp}:
tests/invalid/types.{m,err_exp}:
Add an instance of each bug the diagnostics are for,
and test for the updated diagnostic text.
51 lines
3.5 KiB
Plaintext
51 lines
3.5 KiB
Plaintext
field_syntax_error.m:020: In clause for function `baz1'/1:
|
||
field_syntax_error.m:020: warning: variable [38;5;87m`Bar'[39;49m [38;5;203moccurs only once[39;49m in this
|
||
field_syntax_error.m:020: scope.
|
||
field_syntax_error.m:020: In clause for function `baz1'/1:
|
||
field_syntax_error.m:020: in function result term of clause head:
|
||
field_syntax_error.m:020: error: [38;5;203minvalid use of the field selection operator[39;49m
|
||
field_syntax_error.m:020: [38;5;203m(`^').[39;49m
|
||
field_syntax_error.m:023: In clause for function `baz2'/1:
|
||
field_syntax_error.m:023: in function result term of clause head:
|
||
field_syntax_error.m:023: error: [38;5;203minvalid use of the field selection operator[39;49m
|
||
field_syntax_error.m:023: [38;5;203m(`^').[39;49m
|
||
field_syntax_error.m:026: In clause for function `baz3'/1:
|
||
field_syntax_error.m:026: warning: variable [38;5;87m`Bar'[39;49m [38;5;203moccurs only once[39;49m in this
|
||
field_syntax_error.m:026: scope.
|
||
field_syntax_error.m:026: In clause for function `baz3'/1:
|
||
field_syntax_error.m:026: in function result term of clause head:
|
||
field_syntax_error.m:026: error: [38;5;203minvalid use of the field update operator[39;49m
|
||
field_syntax_error.m:026: [38;5;203m(`:=').[39;49m
|
||
field_syntax_error.m:026: In clause for function `baz3'/1:
|
||
field_syntax_error.m:026: in function result term of clause head:
|
||
field_syntax_error.m:026: in argument 1 of functor `:=/2':
|
||
field_syntax_error.m:026: error: [38;5;203minvalid use of the field selection operator[39;49m
|
||
field_syntax_error.m:026: [38;5;203m(`^').[39;49m
|
||
field_syntax_error.m:029: In clause for function `baz4'/1:
|
||
field_syntax_error.m:029: in function result term of clause head:
|
||
field_syntax_error.m:029: error: [38;5;203minvalid use of the field update operator[39;49m
|
||
field_syntax_error.m:029: [38;5;203m(`:=').[39;49m
|
||
field_syntax_error.m:029: In clause for function `baz4'/1:
|
||
field_syntax_error.m:029: in function result term of clause head:
|
||
field_syntax_error.m:029: in argument 1 of functor `:=/2':
|
||
field_syntax_error.m:029: error: [38;5;203minvalid use of the field selection operator[39;49m
|
||
field_syntax_error.m:029: [38;5;203m(`^').[39;49m
|
||
field_syntax_error.m:034: In clause for function `baz5'/1:
|
||
field_syntax_error.m:034: warning: variable [38;5;87m`Foo'[39;49m [38;5;203moccurs only once[39;49m in this
|
||
field_syntax_error.m:034: scope.
|
||
field_syntax_error.m:034: [38;5;226m(Did you mean `!.Foo' or `!:Foo'?)[39;49m
|
||
field_syntax_error.m:034: In clause for function `baz5'/1:
|
||
field_syntax_error.m:034: in argument 1 of functor `f2/1':
|
||
field_syntax_error.m:034: error: [38;5;203minvalid use of the `!' state variable[39;49m
|
||
field_syntax_error.m:034: [38;5;203moperator.[39;49m
|
||
field_syntax_error.m:034: [38;5;226mYou probably meant to type `!.' or `!:' instead of[39;49m
|
||
field_syntax_error.m:034: [38;5;226mjust `!'.[39;49m
|
||
field_syntax_error.m:034: If you are trying to do a field update, then [38;5;226myou[39;49m
|
||
field_syntax_error.m:034: [38;5;226mprobably typed `=' where you meant to type `:='.[39;49m
|
||
field_syntax_error.m:034: Warning: if the expression [38;5;87m`!Foo ^ f2'[39;49m is intended to
|
||
field_syntax_error.m:034: be part of a field update, then it should be
|
||
field_syntax_error.m:034: followed by [38;5;40m`:=',[39;49m not [38;5;203m`='.[39;49m
|
||
field_syntax_error.m:037: Error: expected a [38;5;40msimple identifier[39;49m as the field
|
||
field_syntax_error.m:037: name, got [38;5;203mf(N).[39;49m
|
||
For more information, recompile with `-E'.
|