[#313] Carry annotations for typed PAIR
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.
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.