KtFile: 'notInsideBranches.kt'
  null

KtPackageDirective(0,0): ''
  null

KtImportList(0,0): ''
  null

KtClass(0,100): '// LANGUAGE: +ContextSensitiveResolutionUsingExpectedType'
  null

KtDeclarationModifierList(58,62): 'enum'
  null

KtClassBody(74,100): '{'
  null

KtEnumEntry(80,86): 'FIRST,'
  null

KtEnumEntry(91,98): 'SECOND;'
  null

KtNamedFunction(102,173): 'fun foo(s: Some) = when (s) {'
  null

KtParameterList(109,118): '(s: Some)'
  null

KtParameter(110,117): 's: Some'
  null

KtTypeReference(113,117): 'Some'
  null

KtUserType(113,117): 'Some'
  null

KtNameReferenceExpression(113,117): 'Some'
  null

KtWhenExpression(121,173): 'when (s) {'
  null

KtNameReferenceExpression(127,128): 's'
  KaCallResolutionSuccess:
    call = KaSimpleVariableAccessCall:
      contextArguments = []
      dispatchReceiver = null
      extensionReceiver = null
      isContextSensitive = false
      kind = Read
      signature = KaVariableSignature:
        name = s
        receiverType = null
        returnType = Some
        symbol = s: Some
        contextParameters = []
        callableId = null
      typeArgumentsMapping = {}

KtWhenEntry(136,151): 'FIRST -> SECOND'
  null

KtWhenConditionWithExpression(136,141): 'FIRST'
  null

KtNameReferenceExpression(136,141): 'FIRST'
  KaCallResolutionSuccess:
    call = KaSimpleVariableAccessCall:
      contextArguments = []
      dispatchReceiver = KaExplicitReceiverValue:
        expression = FIRST
        isSafeNavigation = false
        type = kotlin.Unit
      extensionReceiver = null
      isContextSensitive = true
      kind = Read
      signature = KaVariableSignature:
        name = FIRST
        receiverType = null
        returnType = Some
        symbol = /Some.FIRST
        contextParameters = []
        callableId = /Some.FIRST
      typeArgumentsMapping = {}

KtNameReferenceExpression(145,151): 'SECOND'
  KaCallResolutionError:
    candidateCalls = []
    diagnostic = ERROR<UNRESOLVED_REFERENCE: Unresolved reference 'SECOND'.>

KtWhenEntry(156,171): 'SECOND -> FIRST'
  null

KtWhenConditionWithExpression(156,162): 'SECOND'
  null

KtNameReferenceExpression(156,162): 'SECOND'
  KaCallResolutionSuccess:
    call = KaSimpleVariableAccessCall:
      contextArguments = []
      dispatchReceiver = KaExplicitReceiverValue:
        expression = SECOND
        isSafeNavigation = false
        type = kotlin.Unit
      extensionReceiver = null
      isContextSensitive = true
      kind = Read
      signature = KaVariableSignature:
        name = SECOND
        receiverType = null
        returnType = Some
        symbol = /Some.SECOND
        contextParameters = []
        callableId = /Some.SECOND
      typeArgumentsMapping = {}

KtNameReferenceExpression(166,171): 'FIRST'
  KaCallResolutionError:
    candidateCalls = []
    diagnostic = ERROR<UNRESOLVED_REFERENCE: Unresolved reference 'FIRST'.>
