KtFile: 'noContextSensitiveResolutionShouldHappen.kt'
  NO_CANDIDATES

KtPackageDirective(0,0): ''
  NO_CANDIDATES

KtImportList(0,0): ''
  NO_CANDIDATES

KtClass(78,108): 'enum class MyEnum {'
  NO_CANDIDATES

KtDeclarationModifierList(78,82): 'enum'
  NO_CANDIDATES

KtClassBody(96,108): '{'
  NO_CANDIDATES

KtEnumEntry(102,104): 'X,'
  NO_CANDIDATES

KtEnumEntry(105,106): 'Y'
  NO_CANDIDATES

KtClass(110,143): 'enum class WrongEnum {'
  NO_CANDIDATES

KtDeclarationModifierList(110,114): 'enum'
  NO_CANDIDATES

KtClassBody(131,143): '{'
  NO_CANDIDATES

KtEnumEntry(137,139): 'A,'
  NO_CANDIDATES

KtEnumEntry(140,141): 'B'
  NO_CANDIDATES

KtNamedFunction(145,166): 'fun foo(a: MyEnum) {}'
  NO_CANDIDATES

KtParameterList(152,163): '(a: MyEnum)'
  NO_CANDIDATES

KtParameter(153,162): 'a: MyEnum'
  NO_CANDIDATES

KtTypeReference(156,162): 'MyEnum'
  NO_CANDIDATES

KtUserType(156,162): 'MyEnum'
  NO_CANDIDATES

KtNameReferenceExpression(156,162): 'MyEnum'
  NO_CANDIDATES

KtBlockExpression(164,166): '{}'
  NO_CANDIDATES

KtNamedFunction(168,213): 'fun baz() {'
  NO_CANDIDATES

KtParameterList(175,177): '()'
  NO_CANDIDATES

KtBlockExpression(178,213): '{'
  NO_CANDIDATES

KtCallExpression(184,190): 'foo(X)'
  KaApplicableCallCandidate:
    candidate = KaSimpleFunctionCall:
      contextArgumentMapping = {}
      contextArguments = []
      dispatchReceiver = null
      extensionReceiver = null
      signature = KaFunctionSignature:
        receiverType = null
        returnType = kotlin.Unit
        symbol = /foo(a: MyEnum): kotlin.Unit
        valueParameters = [
          KaVariableSignature:
            name = a
            receiverType = null
            returnType = MyEnum
            symbol = a: MyEnum
            contextParameters = []
            callableId = null
        ]
        contextParameters = []
        callableId = /foo
      typeArgumentsMapping = {}
      valueArgumentMapping = {
        X -> (KaVariableSignature:
          name = a
          receiverType = null
          returnType = MyEnum
          symbol = a: MyEnum
          contextParameters = []
          callableId = null)
      }
    isInBestCandidates = true

KtNameReferenceExpression(184,187): 'foo'
  KaApplicableCallCandidate:
    candidate = KaSimpleFunctionCall:
      contextArgumentMapping = {}
      contextArguments = []
      dispatchReceiver = null
      extensionReceiver = null
      signature = KaFunctionSignature:
        receiverType = null
        returnType = kotlin.Unit
        symbol = /foo(a: MyEnum): kotlin.Unit
        valueParameters = [
          KaVariableSignature:
            name = a
            receiverType = null
            returnType = MyEnum
            symbol = a: MyEnum
            contextParameters = []
            callableId = null
        ]
        contextParameters = []
        callableId = /foo
      typeArgumentsMapping = {}
      valueArgumentMapping = {
        X -> (KaVariableSignature:
          name = a
          receiverType = null
          returnType = MyEnum
          symbol = a: MyEnum
          contextParameters = []
          callableId = null)
      }
    isInBestCandidates = true

KtValueArgumentList(187,190): '(X)'
  NO_CANDIDATES

KtValueArgument(188,189): 'X'
  NO_CANDIDATES

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

KtCallExpression(195,211): 'foo(WrongEnum.X)'
  KaApplicableCallCandidate:
    candidate = KaSimpleFunctionCall:
      contextArgumentMapping = {}
      contextArguments = []
      dispatchReceiver = null
      extensionReceiver = null
      signature = KaFunctionSignature:
        receiverType = null
        returnType = kotlin.Unit
        symbol = /foo(a: MyEnum): kotlin.Unit
        valueParameters = [
          KaVariableSignature:
            name = a
            receiverType = null
            returnType = MyEnum
            symbol = a: MyEnum
            contextParameters = []
            callableId = null
        ]
        contextParameters = []
        callableId = /foo
      typeArgumentsMapping = {}
      valueArgumentMapping = {
        WrongEnum.X -> (KaVariableSignature:
          name = a
          receiverType = null
          returnType = MyEnum
          symbol = a: MyEnum
          contextParameters = []
          callableId = null)
      }
    isInBestCandidates = true

KtNameReferenceExpression(195,198): 'foo'
  KaApplicableCallCandidate:
    candidate = KaSimpleFunctionCall:
      contextArgumentMapping = {}
      contextArguments = []
      dispatchReceiver = null
      extensionReceiver = null
      signature = KaFunctionSignature:
        receiverType = null
        returnType = kotlin.Unit
        symbol = /foo(a: MyEnum): kotlin.Unit
        valueParameters = [
          KaVariableSignature:
            name = a
            receiverType = null
            returnType = MyEnum
            symbol = a: MyEnum
            contextParameters = []
            callableId = null
        ]
        contextParameters = []
        callableId = /foo
      typeArgumentsMapping = {}
      valueArgumentMapping = {
        WrongEnum.X -> (KaVariableSignature:
          name = a
          receiverType = null
          returnType = MyEnum
          symbol = a: MyEnum
          contextParameters = []
          callableId = null)
      }
    isInBestCandidates = true

KtValueArgumentList(198,211): '(WrongEnum.X)'
  NO_CANDIDATES

KtValueArgument(199,210): 'WrongEnum.X'
  NO_CANDIDATES

KtDotQualifiedExpression(199,210): 'WrongEnum.X'
  NO_CANDIDATES

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

KtNameReferenceExpression(209,210): 'X'
  NO_CANDIDATES

KtClass(215,248): '@DslMarker'
  NO_CANDIDATES

KtDeclarationModifierList(215,236): '@DslMarker'
  NO_CANDIDATES

KtAnnotationEntry(215,225): '@DslMarker'
  KaApplicableCallCandidate:
    candidate = KaAnnotationCall:
      contextArgumentMapping = {}
      contextArguments = []
      dispatchReceiver = null
      extensionReceiver = null
      signature = KaFunctionSignature:
        receiverType = null
        returnType = kotlin.DslMarker
        symbol = <constructor>(): kotlin.DslMarker
        valueParameters = []
        contextParameters = []
        callableId = null
      typeArgumentsMapping = {}
      valueArgumentMapping = {}
    isInBestCandidates = true

KtConstructorCalleeExpression(216,225): 'DslMarker'
  KaApplicableCallCandidate:
    candidate = KaAnnotationCall:
      contextArgumentMapping = {}
      contextArguments = []
      dispatchReceiver = null
      extensionReceiver = null
      signature = KaFunctionSignature:
        receiverType = null
        returnType = kotlin.DslMarker
        symbol = <constructor>(): kotlin.DslMarker
        valueParameters = []
        contextParameters = []
        callableId = null
      typeArgumentsMapping = {}
      valueArgumentMapping = {}
    isInBestCandidates = true

KtTypeReference(216,225): 'DslMarker'
  NO_CANDIDATES

KtUserType(216,225): 'DslMarker'
  NO_CANDIDATES

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

KtClass(250,264): '@MyDsl'
  NO_CANDIDATES

KtDeclarationModifierList(250,256): '@MyDsl'
  NO_CANDIDATES

KtAnnotationEntry(250,256): '@MyDsl'
  KaApplicableCallCandidate:
    candidate = KaAnnotationCall:
      contextArgumentMapping = {}
      contextArguments = []
      dispatchReceiver = null
      extensionReceiver = null
      signature = KaFunctionSignature:
        receiverType = null
        returnType = MyDsl
        symbol = <constructor>(): MyDsl
        valueParameters = []
        contextParameters = []
        callableId = null
      typeArgumentsMapping = {}
      valueArgumentMapping = {}
    isInBestCandidates = true

KtConstructorCalleeExpression(251,256): 'MyDsl'
  KaApplicableCallCandidate:
    candidate = KaAnnotationCall:
      contextArgumentMapping = {}
      contextArguments = []
      dispatchReceiver = null
      extensionReceiver = null
      signature = KaFunctionSignature:
        receiverType = null
        returnType = MyDsl
        symbol = <constructor>(): MyDsl
        valueParameters = []
        contextParameters = []
        callableId = null
      typeArgumentsMapping = {}
      valueArgumentMapping = {}
    isInBestCandidates = true

KtTypeReference(251,256): 'MyDsl'
  NO_CANDIDATES

KtUserType(251,256): 'MyDsl'
  NO_CANDIDATES

KtNameReferenceExpression(251,256): 'MyDsl'
  KaApplicableCallCandidate:
    candidate = KaAnnotationCall:
      contextArgumentMapping = {}
      contextArguments = []
      dispatchReceiver = null
      extensionReceiver = null
      signature = KaFunctionSignature:
        receiverType = null
        returnType = MyDsl
        symbol = <constructor>(): MyDsl
        valueParameters = []
        contextParameters = []
        callableId = null
      typeArgumentsMapping = {}
      valueArgumentMapping = {}
    isInBestCandidates = true

KtClass(266,280): '@MyDsl'
  NO_CANDIDATES

KtDeclarationModifierList(266,272): '@MyDsl'
  NO_CANDIDATES

KtAnnotationEntry(266,272): '@MyDsl'
  KaApplicableCallCandidate:
    candidate = KaAnnotationCall:
      contextArgumentMapping = {}
      contextArguments = []
      dispatchReceiver = null
      extensionReceiver = null
      signature = KaFunctionSignature:
        receiverType = null
        returnType = MyDsl
        symbol = <constructor>(): MyDsl
        valueParameters = []
        contextParameters = []
        callableId = null
      typeArgumentsMapping = {}
      valueArgumentMapping = {}
    isInBestCandidates = true

KtConstructorCalleeExpression(267,272): 'MyDsl'
  KaApplicableCallCandidate:
    candidate = KaAnnotationCall:
      contextArgumentMapping = {}
      contextArguments = []
      dispatchReceiver = null
      extensionReceiver = null
      signature = KaFunctionSignature:
        receiverType = null
        returnType = MyDsl
        symbol = <constructor>(): MyDsl
        valueParameters = []
        contextParameters = []
        callableId = null
      typeArgumentsMapping = {}
      valueArgumentMapping = {}
    isInBestCandidates = true

KtTypeReference(267,272): 'MyDsl'
  NO_CANDIDATES

KtUserType(267,272): 'MyDsl'
  NO_CANDIDATES

KtNameReferenceExpression(267,272): 'MyDsl'
  KaApplicableCallCandidate:
    candidate = KaAnnotationCall:
      contextArgumentMapping = {}
      contextArguments = []
      dispatchReceiver = null
      extensionReceiver = null
      signature = KaFunctionSignature:
        receiverType = null
        returnType = MyDsl
        symbol = <constructor>(): MyDsl
        valueParameters = []
        contextParameters = []
        callableId = null
      typeArgumentsMapping = {}
      valueArgumentMapping = {}
    isInBestCandidates = true

KtProperty(282,308): 'val A.X: String get() = ""'
  NO_CANDIDATES

KtTypeReference(286,287): 'A'
  NO_CANDIDATES

KtUserType(286,287): 'A'
  NO_CANDIDATES

KtNameReferenceExpression(286,287): 'A'
  NO_CANDIDATES

KtTypeReference(291,297): 'String'
  NO_CANDIDATES

KtUserType(291,297): 'String'
  NO_CANDIDATES

KtNameReferenceExpression(291,297): 'String'
  NO_CANDIDATES

KtPropertyAccessor(298,308): 'get() = ""'
  NO_CANDIDATES

KtParameterList(301,303): '()'
  NO_CANDIDATES

KtStringTemplateExpression(306,308): '""'
  NO_CANDIDATES

KtNamedFunction(310,364): 'fun A.foo() {'
  NO_CANDIDATES

KtTypeReference(314,315): 'A'
  NO_CANDIDATES

KtUserType(314,315): 'A'
  NO_CANDIDATES

KtNameReferenceExpression(314,315): 'A'
  NO_CANDIDATES

KtParameterList(319,321): '()'
  NO_CANDIDATES

KtBlockExpression(322,364): '{'
  NO_CANDIDATES

KtNamedFunction(328,362): 'fun B.bar() {'
  NO_CANDIDATES

KtTypeReference(332,333): 'B'
  NO_CANDIDATES

KtUserType(332,333): 'B'
  NO_CANDIDATES

KtNameReferenceExpression(332,333): 'B'
  NO_CANDIDATES

KtParameterList(337,339): '()'
  NO_CANDIDATES

KtBlockExpression(340,362): '{'
  NO_CANDIDATES

KtCallExpression(350,356): 'foo(X)'
  KaInapplicableCallCandidate:
    candidate = KaSimpleFunctionCall:
      contextArgumentMapping = {}
      contextArguments = []
      dispatchReceiver = null
      extensionReceiver = KaImplicitReceiverValue:
        symbol = KaReceiverParameterSymbol:
          anchorPsi: KtTypeReference
          annotations: []
          callableId: null
          contextParameters: []
          contextReceivers: []
          isActual: false
          isCompanion: false
          isDelegated: false
          isExpect: false
          isExtension: false
          isExternal: false
          isVal: true
          location: LOCAL
          modality: FINAL
          name: <receiver>
          origin: SOURCE
          owningCallableSymbol: KaNamedFunctionSymbol(<local>/bar)
          psi: KtTypeReference
          realPsi: KtTypeReference
          receiverParameter: null
          returnType: KaUsualClassType:
            annotations: []
            typeArguments: []
            type: B
          typeParameters: []
          visibility: PUBLIC
        type = B
      signature = KaFunctionSignature:
        receiverType = A
        returnType = kotlin.Unit
        symbol = /foo(<extension receiver>: A): kotlin.Unit
        valueParameters = []
        contextParameters = []
        callableId = /foo
      typeArgumentsMapping = {}
      valueArgumentMapping = {}
    diagnostic = ERROR<UNRESOLVED_REFERENCE_WRONG_RECEIVER: Candidate 'fun A.foo(): Unit' is inapplicable because of a receiver type mismatch.>
    isInBestCandidates = false

  KaInapplicableCallCandidate:
    candidate = KaSimpleFunctionCall:
      contextArgumentMapping = {}
      contextArguments = []
      dispatchReceiver = null
      extensionReceiver = null
      signature = KaFunctionSignature:
        receiverType = null
        returnType = kotlin.Unit
        symbol = /foo(a: MyEnum): kotlin.Unit
        valueParameters = [
          KaVariableSignature:
            name = a
            receiverType = null
            returnType = MyEnum
            symbol = a: MyEnum
            contextParameters = []
            callableId = null
        ]
        contextParameters = []
        callableId = /foo
      typeArgumentsMapping = {}
      valueArgumentMapping = {
        X -> (KaVariableSignature:
          name = a
          receiverType = null
          returnType = MyEnum
          symbol = a: MyEnum
          contextParameters = []
          callableId = null)
      }
    diagnostic = ERROR<ARGUMENT_TYPE_MISMATCH: Argument type mismatch: actual type is 'String', but 'MyEnum' was expected.>
    isInBestCandidates = true

KtNameReferenceExpression(350,353): 'foo'
  KaInapplicableCallCandidate:
    candidate = KaSimpleFunctionCall:
      contextArgumentMapping = {}
      contextArguments = []
      dispatchReceiver = null
      extensionReceiver = KaImplicitReceiverValue:
        symbol = KaReceiverParameterSymbol:
          anchorPsi: KtTypeReference
          annotations: []
          callableId: null
          contextParameters: []
          contextReceivers: []
          isActual: false
          isCompanion: false
          isDelegated: false
          isExpect: false
          isExtension: false
          isExternal: false
          isVal: true
          location: LOCAL
          modality: FINAL
          name: <receiver>
          origin: SOURCE
          owningCallableSymbol: KaNamedFunctionSymbol(<local>/bar)
          psi: KtTypeReference
          realPsi: KtTypeReference
          receiverParameter: null
          returnType: KaUsualClassType:
            annotations: []
            typeArguments: []
            type: B
          typeParameters: []
          visibility: PUBLIC
        type = B
      signature = KaFunctionSignature:
        receiverType = A
        returnType = kotlin.Unit
        symbol = /foo(<extension receiver>: A): kotlin.Unit
        valueParameters = []
        contextParameters = []
        callableId = /foo
      typeArgumentsMapping = {}
      valueArgumentMapping = {}
    diagnostic = ERROR<UNRESOLVED_REFERENCE_WRONG_RECEIVER: Candidate 'fun A.foo(): Unit' is inapplicable because of a receiver type mismatch.>
    isInBestCandidates = false

  KaInapplicableCallCandidate:
    candidate = KaSimpleFunctionCall:
      contextArgumentMapping = {}
      contextArguments = []
      dispatchReceiver = null
      extensionReceiver = null
      signature = KaFunctionSignature:
        receiverType = null
        returnType = kotlin.Unit
        symbol = /foo(a: MyEnum): kotlin.Unit
        valueParameters = [
          KaVariableSignature:
            name = a
            receiverType = null
            returnType = MyEnum
            symbol = a: MyEnum
            contextParameters = []
            callableId = null
        ]
        contextParameters = []
        callableId = /foo
      typeArgumentsMapping = {}
      valueArgumentMapping = {
        X -> (KaVariableSignature:
          name = a
          receiverType = null
          returnType = MyEnum
          symbol = a: MyEnum
          contextParameters = []
          callableId = null)
      }
    diagnostic = ERROR<ARGUMENT_TYPE_MISMATCH: Argument type mismatch: actual type is 'String', but 'MyEnum' was expected.>
    isInBestCandidates = true

KtValueArgumentList(353,356): '(X)'
  NO_CANDIDATES

KtValueArgument(354,355): 'X'
  NO_CANDIDATES

KtNameReferenceExpression(354,355): 'X'
  KaInapplicableCallCandidate:
    candidate = KaSimpleVariableAccessCall:
      contextArguments = []
      dispatchReceiver = null
      extensionReceiver = KaImplicitReceiverValue:
        symbol = KaReceiverParameterSymbol:
          anchorPsi: KtTypeReference
          annotations: []
          callableId: null
          contextParameters: []
          contextReceivers: []
          isActual: false
          isCompanion: false
          isDelegated: false
          isExpect: false
          isExtension: false
          isExternal: false
          isVal: true
          location: LOCAL
          modality: FINAL
          name: <receiver>
          origin: SOURCE
          owningCallableSymbol: KaNamedFunctionSymbol(<local>/bar)
          psi: KtTypeReference
          realPsi: KtTypeReference
          receiverParameter: null
          returnType: KaUsualClassType:
            annotations: []
            typeArguments: []
            type: B
          typeParameters: []
          visibility: PUBLIC
        type = B
      isContextSensitive = false
      kind = Read
      signature = KaVariableSignature:
        name = X
        receiverType = A
        returnType = kotlin.String
        symbol = val X: kotlin.String
        contextParameters = []
        callableId = /X
      typeArgumentsMapping = {}
    diagnostic = ERROR<UNRESOLVED_REFERENCE_WRONG_RECEIVER: Candidate 'val A.X: String' is inapplicable because of a receiver type mismatch.>
    isInBestCandidates = true
