[#313] Carry annotations for typed PAIR
Description
Problem: Currently annotations for instructions are inherited from notes that are stored on the 'HST' during typecheck. Such behaviour can produce invalid field annotations for 'PAIR' instruction in case of special annotations (such as '%@').
Solution: Carry annotations for typed PAIR instructions separately, so that we are sure they are the same as for initial untyped instruction.
Related issue(s)
Resolves #313 (closed)
✅ Checklist for your Merge Request
Related changes (conditional)
-
Tests (see short guidelines)
-
If I added new functionality, I added tests covering it. -
If I fixed a bug, I added a regression test to prevent the bug from silently reappearing again.
-
-
Documentation
Stylistic guide (mandatory)
-
My commits comply with the following policy. -
My code complies with the style guide.
Edited by Roman Melnikov