================================================================================
errors/forGeneratorWrongVariableName
================================================================================

res: Mapping<String, Int> = new {
  for (idx, o in List(1, 2)) {
    ["\(idx)_1"] = o
  }
  for (idx, t in List(3, 4)) {
    ["\(idx)_2"] = o // at this point, `o` should be out of scope
  }
}

--------------------------------------------------------------------------------

(module
  (classProperty
    (identifier)
    (typeAnnotation
      (type
        (qualifiedIdentifier
          (identifier))
        (typeArgumentList
          (type
            (qualifiedIdentifier
              (identifier)))
          (type
            (qualifiedIdentifier
              (identifier))))))
    (newExpr
      (objectBody
        (forGenerator
          (typedIdentifier
            (identifier))
          (typedIdentifier
            (identifier))
          (methodCallExpr
            (identifier)
            (argumentList
              (intLiteral)
              (intLiteral)))
          (objectBody
            (objectEntry
              (slStringLiteral
                (interpolationExpr
                  (variableExpr
                    (identifier))))
              (variableExpr
                (identifier)))))
        (forGenerator
          (typedIdentifier
            (identifier))
          (typedIdentifier
            (identifier))
          (methodCallExpr
            (identifier)
            (argumentList
              (intLiteral)
              (intLiteral)))
          (objectBody
            (objectEntry
              (slStringLiteral
                (interpolationExpr
                  (variableExpr
                    (identifier))))
              (variableExpr
                (identifier)))
            (lineComment)))))))
