================================================================================
mappings2/wrongParent
================================================================================

import "pkl:test"

class Person {}

res1 = test.catch(() -> (5) { when (false) { [0] = 0 }; ["pigeon"] = true })
res2 = test.catch(() -> new List { when (false) { [0] = 0 }; ["pigeon"] = true })
res3 = test.catch(() -> (List()) { when (false) { [0] = 0 }; ["pigeon"] = true })
res4 = test.catch(() -> new Person { when (false) { [0] = 0 }; ["pigeon"] = true })
res5 = test.catch(() -> new ValueRenderer { when (false) { [0] = 0 }; ["pigeon"] = true })
res6 = test.catch(() -> new Listing { when (false) { [0] = 0 }; [0] = true })

res7 = test.catch(() -> (5) { when (false) { [0] = 0 }; ["fr" + "ed"] = true })
res8 = test.catch(() -> new List { when (false) { [0] = 0 }; ["fr" + "ed"] = true })
res9 = test.catch(() -> (List()) { when (false) { [0] = 0 }; ["fr" + "ed"] = true })
res10 = test.catch(() -> new Person { when (false) { [0] = 0 }; ["fr" + "ed"] = true })
res11 = test.catch(() -> new ValueRenderer { when (false) { [0] = 0 }; ["fr" + "ed"] = true })
res12 = test.catch(() -> new Listing { when (false) { [0] = 0 }; [0 + 0] = true })

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

(module
  (importClause
    (stringConstant))
  (clazz
    (identifier)
    (classBody))
  (classProperty
    (identifier)
    (methodCallExpr
      (variableExpr
        (identifier))
      (identifier)
      (argumentList
        (functionLiteral
          (parameterList)
          (objectLiteral
            (parenthesizedExpr
              (intLiteral))
            (objectBody
              (whenGenerator
                (falseLiteral)
                (objectBody
                  (objectEntry
                    (intLiteral)
                    (intLiteral))))
              (objectEntry
                (slStringLiteral)
                (trueLiteral))))))))
  (classProperty
    (identifier)
    (methodCallExpr
      (variableExpr
        (identifier))
      (identifier)
      (argumentList
        (functionLiteral
          (parameterList)
          (newExpr
            (type
              (qualifiedIdentifier
                (identifier)))
            (objectBody
              (whenGenerator
                (falseLiteral)
                (objectBody
                  (objectEntry
                    (intLiteral)
                    (intLiteral))))
              (objectEntry
                (slStringLiteral)
                (trueLiteral))))))))
  (classProperty
    (identifier)
    (methodCallExpr
      (variableExpr
        (identifier))
      (identifier)
      (argumentList
        (functionLiteral
          (parameterList)
          (objectLiteral
            (parenthesizedExpr
              (methodCallExpr
                (identifier)
                (argumentList)))
            (objectBody
              (whenGenerator
                (falseLiteral)
                (objectBody
                  (objectEntry
                    (intLiteral)
                    (intLiteral))))
              (objectEntry
                (slStringLiteral)
                (trueLiteral))))))))
  (classProperty
    (identifier)
    (methodCallExpr
      (variableExpr
        (identifier))
      (identifier)
      (argumentList
        (functionLiteral
          (parameterList)
          (newExpr
            (type
              (qualifiedIdentifier
                (identifier)))
            (objectBody
              (whenGenerator
                (falseLiteral)
                (objectBody
                  (objectEntry
                    (intLiteral)
                    (intLiteral))))
              (objectEntry
                (slStringLiteral)
                (trueLiteral))))))))
  (classProperty
    (identifier)
    (methodCallExpr
      (variableExpr
        (identifier))
      (identifier)
      (argumentList
        (functionLiteral
          (parameterList)
          (newExpr
            (type
              (qualifiedIdentifier
                (identifier)))
            (objectBody
              (whenGenerator
                (falseLiteral)
                (objectBody
                  (objectEntry
                    (intLiteral)
                    (intLiteral))))
              (objectEntry
                (slStringLiteral)
                (trueLiteral))))))))
  (classProperty
    (identifier)
    (methodCallExpr
      (variableExpr
        (identifier))
      (identifier)
      (argumentList
        (functionLiteral
          (parameterList)
          (newExpr
            (type
              (qualifiedIdentifier
                (identifier)))
            (objectBody
              (whenGenerator
                (falseLiteral)
                (objectBody
                  (objectEntry
                    (intLiteral)
                    (intLiteral))))
              (objectEntry
                (intLiteral)
                (trueLiteral))))))))
  (classProperty
    (identifier)
    (methodCallExpr
      (variableExpr
        (identifier))
      (identifier)
      (argumentList
        (functionLiteral
          (parameterList)
          (objectLiteral
            (parenthesizedExpr
              (intLiteral))
            (objectBody
              (whenGenerator
                (falseLiteral)
                (objectBody
                  (objectEntry
                    (intLiteral)
                    (intLiteral))))
              (objectEntry
                (binaryExpr
                  (slStringLiteral)
                  (slStringLiteral))
                (trueLiteral))))))))
  (classProperty
    (identifier)
    (methodCallExpr
      (variableExpr
        (identifier))
      (identifier)
      (argumentList
        (functionLiteral
          (parameterList)
          (newExpr
            (type
              (qualifiedIdentifier
                (identifier)))
            (objectBody
              (whenGenerator
                (falseLiteral)
                (objectBody
                  (objectEntry
                    (intLiteral)
                    (intLiteral))))
              (objectEntry
                (binaryExpr
                  (slStringLiteral)
                  (slStringLiteral))
                (trueLiteral))))))))
  (classProperty
    (identifier)
    (methodCallExpr
      (variableExpr
        (identifier))
      (identifier)
      (argumentList
        (functionLiteral
          (parameterList)
          (objectLiteral
            (parenthesizedExpr
              (methodCallExpr
                (identifier)
                (argumentList)))
            (objectBody
              (whenGenerator
                (falseLiteral)
                (objectBody
                  (objectEntry
                    (intLiteral)
                    (intLiteral))))
              (objectEntry
                (binaryExpr
                  (slStringLiteral)
                  (slStringLiteral))
                (trueLiteral))))))))
  (classProperty
    (identifier)
    (methodCallExpr
      (variableExpr
        (identifier))
      (identifier)
      (argumentList
        (functionLiteral
          (parameterList)
          (newExpr
            (type
              (qualifiedIdentifier
                (identifier)))
            (objectBody
              (whenGenerator
                (falseLiteral)
                (objectBody
                  (objectEntry
                    (intLiteral)
                    (intLiteral))))
              (objectEntry
                (binaryExpr
                  (slStringLiteral)
                  (slStringLiteral))
                (trueLiteral))))))))
  (classProperty
    (identifier)
    (methodCallExpr
      (variableExpr
        (identifier))
      (identifier)
      (argumentList
        (functionLiteral
          (parameterList)
          (newExpr
            (type
              (qualifiedIdentifier
                (identifier)))
            (objectBody
              (whenGenerator
                (falseLiteral)
                (objectBody
                  (objectEntry
                    (intLiteral)
                    (intLiteral))))
              (objectEntry
                (binaryExpr
                  (slStringLiteral)
                  (slStringLiteral))
                (trueLiteral))))))))
  (classProperty
    (identifier)
    (methodCallExpr
      (variableExpr
        (identifier))
      (identifier)
      (argumentList
        (functionLiteral
          (parameterList)
          (newExpr
            (type
              (qualifiedIdentifier
                (identifier)))
            (objectBody
              (whenGenerator
                (falseLiteral)
                (objectBody
                  (objectEntry
                    (intLiteral)
                    (intLiteral))))
              (objectEntry
                (binaryExpr
                  (intLiteral)
                  (intLiteral))
                (trueLiteral)))))))))
