Skip to content
  • Ben Price's avatar
    Clarify a Lint message · 5ba01d83
    Ben Price authored and Marge Bot's avatar Marge Bot committed
    When developing a plugin I had a shadowing problem, where I generated
    code
      app = \f{v r7B} x{v r7B} -> f{v r7B} x{v r7B}
    This is obviously wrong, since the occurrence of `f` to the right of the
    arrow refers to the `x` binder (they share a Unique). However, it is
    rather confusing when Lint reports
      Mismatch in type between binder and occurrence
      Var: x{v rB7}
    since it is printing the binder, rather than the occurrence.
    It is rather easy to read this as claiming there is something wrong with
    the `x` occurrence!
    
    We change the report to explicitly print both the binder and the
    occurrence variables.
    5ba01d83