================================================================================
basic/moduleRef3
================================================================================

extends "moduleRefLibrary.pkl"

a = 44

m1 = module.a

b = 43

m2 = module.b

foo {
  m3 = module.a
  m4 = module.b
  local c = () -> module.a
  m5 = c.apply()
}

m6 = f()

m7 = new Person {}

function f() = module.a

class Person {
  age = module.a
}

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

(module
  (moduleHeader
    (extendsOrAmendsClause
      (stringConstant)))
  (classProperty
    (identifier)
    (intLiteral))
  (classProperty
    (identifier)
    (propertyCallExpr
      (moduleExpr)
      (identifier)))
  (classProperty
    (identifier)
    (intLiteral))
  (classProperty
    (identifier)
    (propertyCallExpr
      (moduleExpr)
      (identifier)))
  (classProperty
    (identifier)
    (objectBody
      (objectProperty
        (identifier)
        (propertyCallExpr
          (moduleExpr)
          (identifier)))
      (objectProperty
        (identifier)
        (propertyCallExpr
          (moduleExpr)
          (identifier)))
      (objectProperty
        (modifier)
        (identifier)
        (functionLiteral
          (parameterList)
          (propertyCallExpr
            (moduleExpr)
            (identifier))))
      (objectProperty
        (identifier)
        (methodCallExpr
          (variableExpr
            (identifier))
          (identifier)
          (argumentList)))))
  (classProperty
    (identifier)
    (methodCallExpr
      (identifier)
      (argumentList)))
  (classProperty
    (identifier)
    (newExpr
      (type
        (qualifiedIdentifier
          (identifier)))
      (objectBody)))
  (classMethod
    (methodHeader
      (identifier)
      (parameterList))
    (propertyCallExpr
      (moduleExpr)
      (identifier)))
  (clazz
    (identifier)
    (classBody
      (classProperty
        (identifier)
        (propertyCallExpr
          (moduleExpr)
          (identifier))))))
