KtFile: 'companion.kt'
  NO_CANDIDATES

KtPackageDirective(91,102): 'package foo'
  NO_CANDIDATES

KtNameReferenceExpression(99,102): 'foo'
  NO_CANDIDATES

KtImportList(102,102): ''
  NO_CANDIDATES

KtClass(104,134): 'enum class MyEnum {'
  NO_CANDIDATES

KtDeclarationModifierList(104,108): 'enum'
  NO_CANDIDATES

KtClassBody(122,134): '{'
  NO_CANDIDATES

KtEnumEntry(128,130): 'A,'
  NO_CANDIDATES

KtEnumEntry(131,132): 'B'
  NO_CANDIDATES

KtClass(136,706): 'class Test {'
  NO_CANDIDATES

KtClassBody(147,706): '{'
  NO_CANDIDATES

KtObjectDeclaration(153,199): 'companion object {'
  NO_CANDIDATES

KtDeclarationModifierList(153,162): 'companion'
  NO_CANDIDATES

KtClassBody(170,199): '{'
  NO_CANDIDATES

KtProperty(180,193): 'val A = Any()'
  NO_CANDIDATES

KtCallExpression(188,193): 'Any()'
  KaApplicableCallCandidate:
    candidate = KaSimpleFunctionCall:
      contextArgumentMapping = {}
      contextArguments = []
      dispatchReceiver = null
      extensionReceiver = null
      signature = KaFunctionSignature:
        receiverType = null
        returnType = kotlin.Any
        symbol = <constructor>(): kotlin.Any
        valueParameters = []
        contextParameters = []
        callableId = null
      typeArgumentsMapping = {}
      valueArgumentMapping = {}
    isInBestCandidates = true

KtNameReferenceExpression(188,191): 'Any'
  KaApplicableCallCandidate:
    candidate = KaSimpleFunctionCall:
      contextArgumentMapping = {}
      contextArguments = []
      dispatchReceiver = null
      extensionReceiver = null
      signature = KaFunctionSignature:
        receiverType = null
        returnType = kotlin.Any
        symbol = <constructor>(): kotlin.Any
        valueParameters = []
        contextParameters = []
        callableId = null
      typeArgumentsMapping = {}
      valueArgumentMapping = {}
    isInBestCandidates = true

KtValueArgumentList(191,193): '()'
  NO_CANDIDATES

KtNamedFunction(205,269): 'fun test1wrong(x: MyEnum): Boolean {'
  NO_CANDIDATES

KtParameterList(219,230): '(x: MyEnum)'
  NO_CANDIDATES

KtParameter(220,229): 'x: MyEnum'
  NO_CANDIDATES

KtTypeReference(223,229): 'MyEnum'
  NO_CANDIDATES

KtUserType(223,229): 'MyEnum'
  NO_CANDIDATES

KtNameReferenceExpression(223,229): 'MyEnum'
  NO_CANDIDATES

KtTypeReference(232,239): 'Boolean'
  NO_CANDIDATES

KtUserType(232,239): 'Boolean'
  NO_CANDIDATES

KtNameReferenceExpression(232,239): 'Boolean'
  NO_CANDIDATES

KtBlockExpression(240,269): '{'
  NO_CANDIDATES

KtReturnExpression(250,263): 'return x == A'
  NO_CANDIDATES

KtBinaryExpression(257,263): 'x == A'
  KaApplicableCallCandidate:
    candidate = KaSimpleFunctionCall:
      contextArgumentMapping = {}
      contextArguments = []
      dispatchReceiver = KaExplicitReceiverValue:
        expression = x
        isSafeNavigation = false
        type = foo.MyEnum
      extensionReceiver = null
      signature = KaFunctionSignature:
        receiverType = null
        returnType = kotlin.Boolean
        symbol = kotlin/Enum.equals(<dispatch receiver>: kotlin.Enum<E>, other: kotlin.Any?): kotlin.Boolean
        valueParameters = [
          KaVariableSignature:
            name = other
            receiverType = null
            returnType = kotlin.Any?
            symbol = other: kotlin.Any?
            contextParameters = []
            callableId = null
        ]
        contextParameters = []
        callableId = kotlin/Enum.equals
      typeArgumentsMapping = {}
      valueArgumentMapping = {
        A -> (KaVariableSignature:
          name = other
          receiverType = null
          returnType = kotlin.Any?
          symbol = other: kotlin.Any?
          contextParameters = []
          callableId = null)
      }
    isInBestCandidates = true

KtNameReferenceExpression(257,258): 'x'
  KaApplicableCallCandidate:
    candidate = KaSimpleVariableAccessCall:
      contextArguments = []
      dispatchReceiver = null
      extensionReceiver = null
      isContextSensitive = false
      kind = Read
      signature = KaVariableSignature:
        name = x
        receiverType = null
        returnType = foo.MyEnum
        symbol = x: foo.MyEnum
        contextParameters = []
        callableId = null
      typeArgumentsMapping = {}
    isInBestCandidates = true

KtOperationReferenceExpression(259,261): '=='
  KaApplicableCallCandidate:
    candidate = KaSimpleFunctionCall:
      contextArgumentMapping = {}
      contextArguments = []
      dispatchReceiver = KaExplicitReceiverValue:
        expression = x
        isSafeNavigation = false
        type = foo.MyEnum
      extensionReceiver = null
      signature = KaFunctionSignature:
        receiverType = null
        returnType = kotlin.Boolean
        symbol = kotlin/Enum.equals(<dispatch receiver>: kotlin.Enum<E>, other: kotlin.Any?): kotlin.Boolean
        valueParameters = [
          KaVariableSignature:
            name = other
            receiverType = null
            returnType = kotlin.Any?
            symbol = other: kotlin.Any?
            contextParameters = []
            callableId = null
        ]
        contextParameters = []
        callableId = kotlin/Enum.equals
      typeArgumentsMapping = {}
      valueArgumentMapping = {
        A -> (KaVariableSignature:
          name = other
          receiverType = null
          returnType = kotlin.Any?
          symbol = other: kotlin.Any?
          contextParameters = []
          callableId = null)
      }
    isInBestCandidates = true

KtNameReferenceExpression(262,263): 'A'
  KaApplicableCallCandidate:
    candidate = KaSimpleVariableAccessCall:
      contextArguments = []
      dispatchReceiver = KaImplicitReceiverValue:
        symbol = foo/Test.Companion
        type = foo.Test.Companion
      extensionReceiver = null
      isContextSensitive = false
      kind = Read
      signature = KaVariableSignature:
        name = A
        receiverType = null
        returnType = kotlin.Any
        symbol = val A: kotlin.Any
        contextParameters = []
        callableId = foo/Test.Companion.A
      typeArgumentsMapping = {}
    isInBestCandidates = true

KtNamedFunction(275,345): 'fun test1enum(x: MyEnum): Boolean {'
  NO_CANDIDATES

KtParameterList(288,299): '(x: MyEnum)'
  NO_CANDIDATES

KtParameter(289,298): 'x: MyEnum'
  NO_CANDIDATES

KtTypeReference(292,298): 'MyEnum'
  NO_CANDIDATES

KtUserType(292,298): 'MyEnum'
  NO_CANDIDATES

KtNameReferenceExpression(292,298): 'MyEnum'
  NO_CANDIDATES

KtTypeReference(301,308): 'Boolean'
  NO_CANDIDATES

KtUserType(301,308): 'Boolean'
  NO_CANDIDATES

KtNameReferenceExpression(301,308): 'Boolean'
  NO_CANDIDATES

KtBlockExpression(309,345): '{'
  NO_CANDIDATES

KtReturnExpression(319,339): 'return x == MyEnum.A'
  NO_CANDIDATES

KtBinaryExpression(326,339): 'x == MyEnum.A'
  KaApplicableCallCandidate:
    candidate = KaSimpleFunctionCall:
      contextArgumentMapping = {}
      contextArguments = []
      dispatchReceiver = KaExplicitReceiverValue:
        expression = x
        isSafeNavigation = false
        type = foo.MyEnum
      extensionReceiver = null
      signature = KaFunctionSignature:
        receiverType = null
        returnType = kotlin.Boolean
        symbol = kotlin/Enum.equals(<dispatch receiver>: kotlin.Enum<E>, other: kotlin.Any?): kotlin.Boolean
        valueParameters = [
          KaVariableSignature:
            name = other
            receiverType = null
            returnType = kotlin.Any?
            symbol = other: kotlin.Any?
            contextParameters = []
            callableId = null
        ]
        contextParameters = []
        callableId = kotlin/Enum.equals
      typeArgumentsMapping = {}
      valueArgumentMapping = {
        MyEnum.A -> (KaVariableSignature:
          name = other
          receiverType = null
          returnType = kotlin.Any?
          symbol = other: kotlin.Any?
          contextParameters = []
          callableId = null)
      }
    isInBestCandidates = true

KtNameReferenceExpression(326,327): 'x'
  KaApplicableCallCandidate:
    candidate = KaSimpleVariableAccessCall:
      contextArguments = []
      dispatchReceiver = null
      extensionReceiver = null
      isContextSensitive = false
      kind = Read
      signature = KaVariableSignature:
        name = x
        receiverType = null
        returnType = foo.MyEnum
        symbol = x: foo.MyEnum
        contextParameters = []
        callableId = null
      typeArgumentsMapping = {}
    isInBestCandidates = true

KtOperationReferenceExpression(328,330): '=='
  KaApplicableCallCandidate:
    candidate = KaSimpleFunctionCall:
      contextArgumentMapping = {}
      contextArguments = []
      dispatchReceiver = KaExplicitReceiverValue:
        expression = x
        isSafeNavigation = false
        type = foo.MyEnum
      extensionReceiver = null
      signature = KaFunctionSignature:
        receiverType = null
        returnType = kotlin.Boolean
        symbol = kotlin/Enum.equals(<dispatch receiver>: kotlin.Enum<E>, other: kotlin.Any?): kotlin.Boolean
        valueParameters = [
          KaVariableSignature:
            name = other
            receiverType = null
            returnType = kotlin.Any?
            symbol = other: kotlin.Any?
            contextParameters = []
            callableId = null
        ]
        contextParameters = []
        callableId = kotlin/Enum.equals
      typeArgumentsMapping = {}
      valueArgumentMapping = {
        MyEnum.A -> (KaVariableSignature:
          name = other
          receiverType = null
          returnType = kotlin.Any?
          symbol = other: kotlin.Any?
          contextParameters = []
          callableId = null)
      }
    isInBestCandidates = true

KtDotQualifiedExpression(331,339): 'MyEnum.A'
  KaApplicableCallCandidate:
    candidate = KaSimpleVariableAccessCall:
      contextArguments = []
      dispatchReceiver = KaExplicitReceiverValue:
        expression = MyEnum
        isSafeNavigation = false
        type = kotlin.Unit
      extensionReceiver = null
      isContextSensitive = false
      kind = Read
      signature = KaVariableSignature:
        name = A
        receiverType = null
        returnType = foo.MyEnum
        symbol = foo/MyEnum.A
        contextParameters = []
        callableId = foo/MyEnum.A
      typeArgumentsMapping = {}
    isInBestCandidates = true

KtNameReferenceExpression(331,337): 'MyEnum'
  KaInapplicableCallCandidate:
    candidate = KaSimpleFunctionCall:
      contextArgumentMapping = {}
      contextArguments = []
      dispatchReceiver = null
      extensionReceiver = null
      signature = KaFunctionSignature:
        receiverType = null
        returnType = foo.MyEnum
        symbol = <constructor>(): foo.MyEnum
        valueParameters = []
        contextParameters = []
        callableId = null
      typeArgumentsMapping = {}
      valueArgumentMapping = {}
    diagnostic = ERROR<OTHER_ERROR: Inapplicable candidate>
    isInBestCandidates = false

KtNameReferenceExpression(338,339): 'A'
  KaApplicableCallCandidate:
    candidate = KaSimpleVariableAccessCall:
      contextArguments = []
      dispatchReceiver = KaExplicitReceiverValue:
        expression = MyEnum
        isSafeNavigation = false
        type = kotlin.Unit
      extensionReceiver = null
      isContextSensitive = false
      kind = Read
      signature = KaVariableSignature:
        name = A
        receiverType = null
        returnType = foo.MyEnum
        symbol = foo/MyEnum.A
        contextParameters = []
        callableId = foo/MyEnum.A
      typeArgumentsMapping = {}
    isInBestCandidates = true

KtNamedFunction(351,429): 'fun test1companion(x: MyEnum): Boolean {'
  NO_CANDIDATES

KtParameterList(369,380): '(x: MyEnum)'
  NO_CANDIDATES

KtParameter(370,379): 'x: MyEnum'
  NO_CANDIDATES

KtTypeReference(373,379): 'MyEnum'
  NO_CANDIDATES

KtUserType(373,379): 'MyEnum'
  NO_CANDIDATES

KtNameReferenceExpression(373,379): 'MyEnum'
  NO_CANDIDATES

KtTypeReference(382,389): 'Boolean'
  NO_CANDIDATES

KtUserType(382,389): 'Boolean'
  NO_CANDIDATES

KtNameReferenceExpression(382,389): 'Boolean'
  NO_CANDIDATES

KtBlockExpression(390,429): '{'
  NO_CANDIDATES

KtReturnExpression(400,423): 'return x == Companion.A'
  NO_CANDIDATES

KtBinaryExpression(407,423): 'x == Companion.A'
  KaApplicableCallCandidate:
    candidate = KaSimpleFunctionCall:
      contextArgumentMapping = {}
      contextArguments = []
      dispatchReceiver = KaExplicitReceiverValue:
        expression = x
        isSafeNavigation = false
        type = foo.MyEnum
      extensionReceiver = null
      signature = KaFunctionSignature:
        receiverType = null
        returnType = kotlin.Boolean
        symbol = kotlin/Enum.equals(<dispatch receiver>: kotlin.Enum<E>, other: kotlin.Any?): kotlin.Boolean
        valueParameters = [
          KaVariableSignature:
            name = other
            receiverType = null
            returnType = kotlin.Any?
            symbol = other: kotlin.Any?
            contextParameters = []
            callableId = null
        ]
        contextParameters = []
        callableId = kotlin/Enum.equals
      typeArgumentsMapping = {}
      valueArgumentMapping = {
        Companion.A -> (KaVariableSignature:
          name = other
          receiverType = null
          returnType = kotlin.Any?
          symbol = other: kotlin.Any?
          contextParameters = []
          callableId = null)
      }
    isInBestCandidates = true

KtNameReferenceExpression(407,408): 'x'
  KaApplicableCallCandidate:
    candidate = KaSimpleVariableAccessCall:
      contextArguments = []
      dispatchReceiver = null
      extensionReceiver = null
      isContextSensitive = false
      kind = Read
      signature = KaVariableSignature:
        name = x
        receiverType = null
        returnType = foo.MyEnum
        symbol = x: foo.MyEnum
        contextParameters = []
        callableId = null
      typeArgumentsMapping = {}
    isInBestCandidates = true

KtOperationReferenceExpression(409,411): '=='
  KaApplicableCallCandidate:
    candidate = KaSimpleFunctionCall:
      contextArgumentMapping = {}
      contextArguments = []
      dispatchReceiver = KaExplicitReceiverValue:
        expression = x
        isSafeNavigation = false
        type = foo.MyEnum
      extensionReceiver = null
      signature = KaFunctionSignature:
        receiverType = null
        returnType = kotlin.Boolean
        symbol = kotlin/Enum.equals(<dispatch receiver>: kotlin.Enum<E>, other: kotlin.Any?): kotlin.Boolean
        valueParameters = [
          KaVariableSignature:
            name = other
            receiverType = null
            returnType = kotlin.Any?
            symbol = other: kotlin.Any?
            contextParameters = []
            callableId = null
        ]
        contextParameters = []
        callableId = kotlin/Enum.equals
      typeArgumentsMapping = {}
      valueArgumentMapping = {
        Companion.A -> (KaVariableSignature:
          name = other
          receiverType = null
          returnType = kotlin.Any?
          symbol = other: kotlin.Any?
          contextParameters = []
          callableId = null)
      }
    isInBestCandidates = true

KtDotQualifiedExpression(412,423): 'Companion.A'
  KaApplicableCallCandidate:
    candidate = KaSimpleVariableAccessCall:
      contextArguments = []
      dispatchReceiver = KaExplicitReceiverValue:
        expression = Companion
        isSafeNavigation = false
        type = foo.Test.Companion
      extensionReceiver = null
      isContextSensitive = false
      kind = Read
      signature = KaVariableSignature:
        name = A
        receiverType = null
        returnType = kotlin.Any
        symbol = val A: kotlin.Any
        contextParameters = []
        callableId = foo/Test.Companion.A
      typeArgumentsMapping = {}
    isInBestCandidates = true

KtNameReferenceExpression(412,421): 'Companion'
  KaInapplicableCallCandidate:
    candidate = KaSimpleFunctionCall:
      contextArgumentMapping = {}
      contextArguments = []
      dispatchReceiver = null
      extensionReceiver = null
      signature = KaFunctionSignature:
        receiverType = null
        returnType = foo.Test.Companion
        symbol = <constructor>(): foo.Test.Companion
        valueParameters = []
        contextParameters = []
        callableId = null
      typeArgumentsMapping = {}
      valueArgumentMapping = {}
    diagnostic = ERROR<OTHER_ERROR: Inapplicable candidate>
    isInBestCandidates = false

KtNameReferenceExpression(422,423): 'A'
  KaApplicableCallCandidate:
    candidate = KaSimpleVariableAccessCall:
      contextArguments = []
      dispatchReceiver = KaExplicitReceiverValue:
        expression = Companion
        isSafeNavigation = false
        type = foo.Test.Companion
      extensionReceiver = null
      isContextSensitive = false
      kind = Read
      signature = KaVariableSignature:
        name = A
        receiverType = null
        returnType = kotlin.Any
        symbol = val A: kotlin.Any
        contextParameters = []
        callableId = foo/Test.Companion.A
      typeArgumentsMapping = {}
    isInBestCandidates = true

KtNamedFunction(435,514): 'fun test2wrong(x: MyEnum): Int = when (x) {'
  NO_CANDIDATES

KtParameterList(449,460): '(x: MyEnum)'
  NO_CANDIDATES

KtParameter(450,459): 'x: MyEnum'
  NO_CANDIDATES

KtTypeReference(453,459): 'MyEnum'
  NO_CANDIDATES

KtUserType(453,459): 'MyEnum'
  NO_CANDIDATES

KtNameReferenceExpression(453,459): 'MyEnum'
  NO_CANDIDATES

KtTypeReference(462,465): 'Int'
  NO_CANDIDATES

KtUserType(462,465): 'Int'
  NO_CANDIDATES

KtNameReferenceExpression(462,465): 'Int'
  NO_CANDIDATES

KtWhenExpression(468,514): 'when (x) {'
  NO_CANDIDATES

KtNameReferenceExpression(474,475): 'x'
  KaApplicableCallCandidate:
    candidate = KaSimpleVariableAccessCall:
      contextArguments = []
      dispatchReceiver = null
      extensionReceiver = null
      isContextSensitive = false
      kind = Read
      signature = KaVariableSignature:
        name = x
        receiverType = null
        returnType = foo.MyEnum
        symbol = x: foo.MyEnum
        contextParameters = []
        callableId = null
      typeArgumentsMapping = {}
    isInBestCandidates = true

KtWhenEntry(487,493): 'A -> 1'
  NO_CANDIDATES

KtWhenConditionWithExpression(487,488): 'A'
  NO_CANDIDATES

KtNameReferenceExpression(487,488): 'A'
  KaApplicableCallCandidate:
    candidate = KaSimpleVariableAccessCall:
      contextArguments = []
      dispatchReceiver = KaImplicitReceiverValue:
        symbol = foo/Test.Companion
        type = foo.Test.Companion
      extensionReceiver = null
      isContextSensitive = false
      kind = Read
      signature = KaVariableSignature:
        name = A
        receiverType = null
        returnType = kotlin.Any
        symbol = val A: kotlin.Any
        contextParameters = []
        callableId = foo/Test.Companion.A
      typeArgumentsMapping = {}
    isInBestCandidates = true

KtConstantExpression(492,493): '1'
  NO_CANDIDATES

KtWhenEntry(502,508): 'B -> 2'
  NO_CANDIDATES

KtWhenConditionWithExpression(502,503): 'B'
  NO_CANDIDATES

KtNameReferenceExpression(502,503): 'B'
  KaApplicableCallCandidate:
    candidate = KaSimpleVariableAccessCall:
      contextArguments = []
      dispatchReceiver = KaExplicitReceiverValue:
        expression = B
        isSafeNavigation = false
        type = kotlin.Unit
      extensionReceiver = null
      isContextSensitive = true
      kind = Read
      signature = KaVariableSignature:
        name = B
        receiverType = null
        returnType = foo.MyEnum
        symbol = foo/MyEnum.B
        contextParameters = []
        callableId = foo/MyEnum.B
      typeArgumentsMapping = {}
    isInBestCandidates = true

KtConstantExpression(507,508): '2'
  NO_CANDIDATES

KtNamedFunction(520,605): 'fun test2enum(x: MyEnum): Int = when (x) {'
  NO_CANDIDATES

KtParameterList(533,544): '(x: MyEnum)'
  NO_CANDIDATES

KtParameter(534,543): 'x: MyEnum'
  NO_CANDIDATES

KtTypeReference(537,543): 'MyEnum'
  NO_CANDIDATES

KtUserType(537,543): 'MyEnum'
  NO_CANDIDATES

KtNameReferenceExpression(537,543): 'MyEnum'
  NO_CANDIDATES

KtTypeReference(546,549): 'Int'
  NO_CANDIDATES

KtUserType(546,549): 'Int'
  NO_CANDIDATES

KtNameReferenceExpression(546,549): 'Int'
  NO_CANDIDATES

KtWhenExpression(552,605): 'when (x) {'
  NO_CANDIDATES

KtNameReferenceExpression(558,559): 'x'
  KaApplicableCallCandidate:
    candidate = KaSimpleVariableAccessCall:
      contextArguments = []
      dispatchReceiver = null
      extensionReceiver = null
      isContextSensitive = false
      kind = Read
      signature = KaVariableSignature:
        name = x
        receiverType = null
        returnType = foo.MyEnum
        symbol = x: foo.MyEnum
        contextParameters = []
        callableId = null
      typeArgumentsMapping = {}
    isInBestCandidates = true

KtWhenEntry(571,584): 'MyEnum.A -> 1'
  NO_CANDIDATES

KtWhenConditionWithExpression(571,579): 'MyEnum.A'
  NO_CANDIDATES

KtDotQualifiedExpression(571,579): 'MyEnum.A'
  KaApplicableCallCandidate:
    candidate = KaSimpleVariableAccessCall:
      contextArguments = []
      dispatchReceiver = KaExplicitReceiverValue:
        expression = MyEnum
        isSafeNavigation = false
        type = kotlin.Unit
      extensionReceiver = null
      isContextSensitive = false
      kind = Read
      signature = KaVariableSignature:
        name = A
        receiverType = null
        returnType = foo.MyEnum
        symbol = foo/MyEnum.A
        contextParameters = []
        callableId = foo/MyEnum.A
      typeArgumentsMapping = {}
    isInBestCandidates = true

KtNameReferenceExpression(571,577): 'MyEnum'
  KaInapplicableCallCandidate:
    candidate = KaSimpleFunctionCall:
      contextArgumentMapping = {}
      contextArguments = []
      dispatchReceiver = null
      extensionReceiver = null
      signature = KaFunctionSignature:
        receiverType = null
        returnType = foo.MyEnum
        symbol = <constructor>(): foo.MyEnum
        valueParameters = []
        contextParameters = []
        callableId = null
      typeArgumentsMapping = {}
      valueArgumentMapping = {}
    diagnostic = ERROR<OTHER_ERROR: Inapplicable candidate>
    isInBestCandidates = false

KtNameReferenceExpression(578,579): 'A'
  KaApplicableCallCandidate:
    candidate = KaSimpleVariableAccessCall:
      contextArguments = []
      dispatchReceiver = KaExplicitReceiverValue:
        expression = MyEnum
        isSafeNavigation = false
        type = kotlin.Unit
      extensionReceiver = null
      isContextSensitive = false
      kind = Read
      signature = KaVariableSignature:
        name = A
        receiverType = null
        returnType = foo.MyEnum
        symbol = foo/MyEnum.A
        contextParameters = []
        callableId = foo/MyEnum.A
      typeArgumentsMapping = {}
    isInBestCandidates = true

KtConstantExpression(583,584): '1'
  NO_CANDIDATES

KtWhenEntry(593,599): 'B -> 2'
  NO_CANDIDATES

KtWhenConditionWithExpression(593,594): 'B'
  NO_CANDIDATES

KtNameReferenceExpression(593,594): 'B'
  KaApplicableCallCandidate:
    candidate = KaSimpleVariableAccessCall:
      contextArguments = []
      dispatchReceiver = KaExplicitReceiverValue:
        expression = B
        isSafeNavigation = false
        type = kotlin.Unit
      extensionReceiver = null
      isContextSensitive = true
      kind = Read
      signature = KaVariableSignature:
        name = B
        receiverType = null
        returnType = foo.MyEnum
        symbol = foo/MyEnum.B
        contextParameters = []
        callableId = foo/MyEnum.B
      typeArgumentsMapping = {}
    isInBestCandidates = true

KtConstantExpression(598,599): '2'
  NO_CANDIDATES

KtNamedFunction(611,704): 'fun test2companion(x: MyEnum): Int = when (x) {'
  NO_CANDIDATES

KtParameterList(629,640): '(x: MyEnum)'
  NO_CANDIDATES

KtParameter(630,639): 'x: MyEnum'
  NO_CANDIDATES

KtTypeReference(633,639): 'MyEnum'
  NO_CANDIDATES

KtUserType(633,639): 'MyEnum'
  NO_CANDIDATES

KtNameReferenceExpression(633,639): 'MyEnum'
  NO_CANDIDATES

KtTypeReference(642,645): 'Int'
  NO_CANDIDATES

KtUserType(642,645): 'Int'
  NO_CANDIDATES

KtNameReferenceExpression(642,645): 'Int'
  NO_CANDIDATES

KtWhenExpression(648,704): 'when (x) {'
  NO_CANDIDATES

KtNameReferenceExpression(654,655): 'x'
  KaApplicableCallCandidate:
    candidate = KaSimpleVariableAccessCall:
      contextArguments = []
      dispatchReceiver = null
      extensionReceiver = null
      isContextSensitive = false
      kind = Read
      signature = KaVariableSignature:
        name = x
        receiverType = null
        returnType = foo.MyEnum
        symbol = x: foo.MyEnum
        contextParameters = []
        callableId = null
      typeArgumentsMapping = {}
    isInBestCandidates = true

KtWhenEntry(667,683): 'Companion.A -> 1'
  NO_CANDIDATES

KtWhenConditionWithExpression(667,678): 'Companion.A'
  NO_CANDIDATES

KtDotQualifiedExpression(667,678): 'Companion.A'
  KaApplicableCallCandidate:
    candidate = KaSimpleVariableAccessCall:
      contextArguments = []
      dispatchReceiver = KaExplicitReceiverValue:
        expression = Companion
        isSafeNavigation = false
        type = foo.Test.Companion
      extensionReceiver = null
      isContextSensitive = false
      kind = Read
      signature = KaVariableSignature:
        name = A
        receiverType = null
        returnType = kotlin.Any
        symbol = val A: kotlin.Any
        contextParameters = []
        callableId = foo/Test.Companion.A
      typeArgumentsMapping = {}
    isInBestCandidates = true

KtNameReferenceExpression(667,676): 'Companion'
  KaInapplicableCallCandidate:
    candidate = KaSimpleFunctionCall:
      contextArgumentMapping = {}
      contextArguments = []
      dispatchReceiver = null
      extensionReceiver = null
      signature = KaFunctionSignature:
        receiverType = null
        returnType = foo.Test.Companion
        symbol = <constructor>(): foo.Test.Companion
        valueParameters = []
        contextParameters = []
        callableId = null
      typeArgumentsMapping = {}
      valueArgumentMapping = {}
    diagnostic = ERROR<OTHER_ERROR: Inapplicable candidate>
    isInBestCandidates = false

KtNameReferenceExpression(677,678): 'A'
  KaApplicableCallCandidate:
    candidate = KaSimpleVariableAccessCall:
      contextArguments = []
      dispatchReceiver = KaExplicitReceiverValue:
        expression = Companion
        isSafeNavigation = false
        type = foo.Test.Companion
      extensionReceiver = null
      isContextSensitive = false
      kind = Read
      signature = KaVariableSignature:
        name = A
        receiverType = null
        returnType = kotlin.Any
        symbol = val A: kotlin.Any
        contextParameters = []
        callableId = foo/Test.Companion.A
      typeArgumentsMapping = {}
    isInBestCandidates = true

KtConstantExpression(682,683): '1'
  NO_CANDIDATES

KtWhenEntry(692,698): 'B -> 2'
  NO_CANDIDATES

KtWhenConditionWithExpression(692,693): 'B'
  NO_CANDIDATES

KtNameReferenceExpression(692,693): 'B'
  KaApplicableCallCandidate:
    candidate = KaSimpleVariableAccessCall:
      contextArguments = []
      dispatchReceiver = KaExplicitReceiverValue:
        expression = B
        isSafeNavigation = false
        type = kotlin.Unit
      extensionReceiver = null
      isContextSensitive = true
      kind = Read
      signature = KaVariableSignature:
        name = B
        receiverType = null
        returnType = foo.MyEnum
        symbol = foo/MyEnum.B
        contextParameters = []
        callableId = foo/MyEnum.B
      typeArgumentsMapping = {}
    isInBestCandidates = true

KtConstantExpression(697,698): '2'
  NO_CANDIDATES
