Fix location for error message for PascaLIGO
Motivation and Context
It was reported in #ligo slack that error message was missing location, which is misleading
Description
This MR fixes the missing location
Types of changes
-
Bug fix (non-breaking change which fixes an issue) -
New feature (non-breaking change which adds functionality) -
Breaking change (fix or feature that would cause existing functionality to not work as expected) -
Performance improvement (non-breaking change that improves performance) -
None (change with no changelog)
Changelog
Before change
$ ligo.55 compile contract x.ligo
Invalid type(s)
Cannot unify int with ( list (operation) * int ).
After change
$ ligo compile contract x.mligo
File "x.ligo", line 3, characters 71-72:
2 |
3 | function updateAdmin(const _new_admin: address; var s: int): return is s
4 |
Invalid type(s)
Cannot unify int with ( list (operation) * int ).
Checklist:
-
Changes follow the existing coding style (use dune @fmt
to check). -
Tests for the changes have been added (for bug fixes / feature). -
Documentation has been updated. -
Changelog description has been added (if appropriate). -
Examples in changed behaviour have been added to the changelog (for breaking change / feature).