Skip to content

[#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

    • I checked whether I should update the docs and did so if necessary:
    • I updated changelog files of all affected packages released to Hackage if my changes are externally visible.

Stylistic guide (mandatory)

Edited by Roman Melnikov

Merge request reports