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'
  KaSymbolResolutionSuccess:
    symbols = [
      /Some
    ]

KtUserType(113,117): 'Some'
  KaSymbolResolutionSuccess:
    symbols = [
      /Some
    ]

KtNameReferenceExpression(113,117): 'Some'
  isImplicitReferenceToCompanion: false
  contextSensitiveResolutionStatus: NotAvailable
  lookupLocally: false
  KaSymbolResolutionSuccess:
    symbols = [
      /Some
    ]

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

KtNameReferenceExpression(127,128): 's'
  isImplicitReferenceToCompanion: false
  contextSensitiveResolutionStatus: NotAvailable
  lookupLocally: true
  KaSymbolResolutionSuccess:
    symbols = [
      s: Some
    ]

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

KtWhenConditionWithExpression(136,141): 'FIRST'
  null

KtNameReferenceExpression(136,141): 'FIRST'
  isImplicitReferenceToCompanion: false
  contextSensitiveResolutionStatus: Used
  lookupLocally: false
  KaSymbolResolutionSuccess:
    symbols = [
      /Some.FIRST
    ]

KtNameReferenceExpression(145,151): 'SECOND'
  isImplicitReferenceToCompanion: false
  contextSensitiveResolutionStatus: NotAvailable
  lookupLocally: false
  KaSymbolResolutionError:
    candidateSymbols = []
    diagnostic = ERROR<UNRESOLVED_REFERENCE: Unresolved reference 'SECOND'.>

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

KtWhenConditionWithExpression(156,162): 'SECOND'
  null

KtNameReferenceExpression(156,162): 'SECOND'
  isImplicitReferenceToCompanion: false
  contextSensitiveResolutionStatus: Used
  lookupLocally: false
  KaSymbolResolutionSuccess:
    symbols = [
      /Some.SECOND
    ]

KtNameReferenceExpression(166,171): 'FIRST'
  isImplicitReferenceToCompanion: false
  contextSensitiveResolutionStatus: NotAvailable
  lookupLocally: false
  KaSymbolResolutionError:
    candidateSymbols = []
    diagnostic = ERROR<UNRESOLVED_REFERENCE: Unresolved reference 'FIRST'.>
