KtFile: 'samePackage.kt'
  NO_CANDIDATES

KtPackageDirective(59,70): 'package foo'
  NO_CANDIDATES

KtNameReferenceExpression(67,70): 'foo'
  NO_CANDIDATES

KtImportList(70,70): ''
  NO_CANDIDATES

KtClass(72,288): 'sealed class Sealed {'
  NO_CANDIDATES

KtDeclarationModifierList(72,78): 'sealed'
  NO_CANDIDATES

KtClassBody(92,288): '{'
  NO_CANDIDATES

KtObjectDeclaration(98,122): 'data object A : Sealed()'
  NO_CANDIDATES

KtDeclarationModifierList(98,102): 'data'
  NO_CANDIDATES

KtSuperTypeList(114,122): 'Sealed()'
  NO_CANDIDATES

KtSuperTypeCallEntry(114,122): 'Sealed()'
  KaApplicableCallCandidate:
    candidate = KaDelegatedConstructorCall:
      contextArgumentMapping = {}
      contextArguments = []
      dispatchReceiver = null
      extensionReceiver = null
      kind = SUPER_CALL
      signature = KaFunctionSignature:
        receiverType = null
        returnType = foo.Sealed
        symbol = <constructor>(): foo.Sealed
        valueParameters = []
        contextParameters = []
        callableId = null
      typeArgumentsMapping = {}
      valueArgumentMapping = {}
    isInBestCandidates = true

KtConstructorCalleeExpression(114,120): 'Sealed'
  KaApplicableCallCandidate:
    candidate = KaDelegatedConstructorCall:
      contextArgumentMapping = {}
      contextArguments = []
      dispatchReceiver = null
      extensionReceiver = null
      kind = SUPER_CALL
      signature = KaFunctionSignature:
        receiverType = null
        returnType = foo.Sealed
        symbol = <constructor>(): foo.Sealed
        valueParameters = []
        contextParameters = []
        callableId = null
      typeArgumentsMapping = {}
      valueArgumentMapping = {}
    isInBestCandidates = true

KtTypeReference(114,120): 'Sealed'
  NO_CANDIDATES

KtUserType(114,120): 'Sealed'
  NO_CANDIDATES

KtNameReferenceExpression(114,120): 'Sealed'
  KaApplicableCallCandidate:
    candidate = KaDelegatedConstructorCall:
      contextArgumentMapping = {}
      contextArguments = []
      dispatchReceiver = null
      extensionReceiver = null
      kind = SUPER_CALL
      signature = KaFunctionSignature:
        receiverType = null
        returnType = foo.Sealed
        symbol = <constructor>(): foo.Sealed
        valueParameters = []
        contextParameters = []
        callableId = null
      typeArgumentsMapping = {}
      valueArgumentMapping = {}
    isInBestCandidates = true

KtValueArgumentList(120,122): '()'
  NO_CANDIDATES

KtClass(127,162): 'data class B(val x: Int) : Sealed()'
  NO_CANDIDATES

KtDeclarationModifierList(127,131): 'data'
  NO_CANDIDATES

KtPrimaryConstructor(139,151): '(val x: Int)'
  NO_CANDIDATES

KtParameterList(139,151): '(val x: Int)'
  NO_CANDIDATES

KtParameter(140,150): 'val x: Int'
  NO_CANDIDATES

KtTypeReference(147,150): 'Int'
  NO_CANDIDATES

KtUserType(147,150): 'Int'
  NO_CANDIDATES

KtNameReferenceExpression(147,150): 'Int'
  NO_CANDIDATES

KtSuperTypeList(154,162): 'Sealed()'
  NO_CANDIDATES

KtSuperTypeCallEntry(154,162): 'Sealed()'
  KaApplicableCallCandidate:
    candidate = KaDelegatedConstructorCall:
      contextArgumentMapping = {}
      contextArguments = []
      dispatchReceiver = null
      extensionReceiver = null
      kind = SUPER_CALL
      signature = KaFunctionSignature:
        receiverType = null
        returnType = foo.Sealed
        symbol = <constructor>(): foo.Sealed
        valueParameters = []
        contextParameters = []
        callableId = null
      typeArgumentsMapping = {}
      valueArgumentMapping = {}
    isInBestCandidates = true

KtConstructorCalleeExpression(154,160): 'Sealed'
  KaApplicableCallCandidate:
    candidate = KaDelegatedConstructorCall:
      contextArgumentMapping = {}
      contextArguments = []
      dispatchReceiver = null
      extensionReceiver = null
      kind = SUPER_CALL
      signature = KaFunctionSignature:
        receiverType = null
        returnType = foo.Sealed
        symbol = <constructor>(): foo.Sealed
        valueParameters = []
        contextParameters = []
        callableId = null
      typeArgumentsMapping = {}
      valueArgumentMapping = {}
    isInBestCandidates = true

KtTypeReference(154,160): 'Sealed'
  NO_CANDIDATES

KtUserType(154,160): 'Sealed'
  NO_CANDIDATES

KtNameReferenceExpression(154,160): 'Sealed'
  KaApplicableCallCandidate:
    candidate = KaDelegatedConstructorCall:
      contextArgumentMapping = {}
      contextArguments = []
      dispatchReceiver = null
      extensionReceiver = null
      kind = SUPER_CALL
      signature = KaFunctionSignature:
        receiverType = null
        returnType = foo.Sealed
        symbol = <constructor>(): foo.Sealed
        valueParameters = []
        contextParameters = []
        callableId = null
      typeArgumentsMapping = {}
      valueArgumentMapping = {}
    isInBestCandidates = true

KtValueArgumentList(160,162): '()'
  NO_CANDIDATES

KtObjectDeclaration(167,191): 'data object C : Sealed()'
  NO_CANDIDATES

KtDeclarationModifierList(167,171): 'data'
  NO_CANDIDATES

KtSuperTypeList(183,191): 'Sealed()'
  NO_CANDIDATES

KtSuperTypeCallEntry(183,191): 'Sealed()'
  KaApplicableCallCandidate:
    candidate = KaDelegatedConstructorCall:
      contextArgumentMapping = {}
      contextArguments = []
      dispatchReceiver = null
      extensionReceiver = null
      kind = SUPER_CALL
      signature = KaFunctionSignature:
        receiverType = null
        returnType = foo.Sealed
        symbol = <constructor>(): foo.Sealed
        valueParameters = []
        contextParameters = []
        callableId = null
      typeArgumentsMapping = {}
      valueArgumentMapping = {}
    isInBestCandidates = true

KtConstructorCalleeExpression(183,189): 'Sealed'
  KaApplicableCallCandidate:
    candidate = KaDelegatedConstructorCall:
      contextArgumentMapping = {}
      contextArguments = []
      dispatchReceiver = null
      extensionReceiver = null
      kind = SUPER_CALL
      signature = KaFunctionSignature:
        receiverType = null
        returnType = foo.Sealed
        symbol = <constructor>(): foo.Sealed
        valueParameters = []
        contextParameters = []
        callableId = null
      typeArgumentsMapping = {}
      valueArgumentMapping = {}
    isInBestCandidates = true

KtTypeReference(183,189): 'Sealed'
  NO_CANDIDATES

KtUserType(183,189): 'Sealed'
  NO_CANDIDATES

KtNameReferenceExpression(183,189): 'Sealed'
  KaApplicableCallCandidate:
    candidate = KaDelegatedConstructorCall:
      contextArgumentMapping = {}
      contextArguments = []
      dispatchReceiver = null
      extensionReceiver = null
      kind = SUPER_CALL
      signature = KaFunctionSignature:
        receiverType = null
        returnType = foo.Sealed
        symbol = <constructor>(): foo.Sealed
        valueParameters = []
        contextParameters = []
        callableId = null
      typeArgumentsMapping = {}
      valueArgumentMapping = {}
    isInBestCandidates = true

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

KtClass(196,231): 'data class D(val y: Int) : Sealed()'
  NO_CANDIDATES

KtDeclarationModifierList(196,200): 'data'
  NO_CANDIDATES

KtPrimaryConstructor(208,220): '(val y: Int)'
  NO_CANDIDATES

KtParameterList(208,220): '(val y: Int)'
  NO_CANDIDATES

KtParameter(209,219): 'val y: Int'
  NO_CANDIDATES

KtTypeReference(216,219): 'Int'
  NO_CANDIDATES

KtUserType(216,219): 'Int'
  NO_CANDIDATES

KtNameReferenceExpression(216,219): 'Int'
  NO_CANDIDATES

KtSuperTypeList(223,231): 'Sealed()'
  NO_CANDIDATES

KtSuperTypeCallEntry(223,231): 'Sealed()'
  KaApplicableCallCandidate:
    candidate = KaDelegatedConstructorCall:
      contextArgumentMapping = {}
      contextArguments = []
      dispatchReceiver = null
      extensionReceiver = null
      kind = SUPER_CALL
      signature = KaFunctionSignature:
        receiverType = null
        returnType = foo.Sealed
        symbol = <constructor>(): foo.Sealed
        valueParameters = []
        contextParameters = []
        callableId = null
      typeArgumentsMapping = {}
      valueArgumentMapping = {}
    isInBestCandidates = true

KtConstructorCalleeExpression(223,229): 'Sealed'
  KaApplicableCallCandidate:
    candidate = KaDelegatedConstructorCall:
      contextArgumentMapping = {}
      contextArguments = []
      dispatchReceiver = null
      extensionReceiver = null
      kind = SUPER_CALL
      signature = KaFunctionSignature:
        receiverType = null
        returnType = foo.Sealed
        symbol = <constructor>(): foo.Sealed
        valueParameters = []
        contextParameters = []
        callableId = null
      typeArgumentsMapping = {}
      valueArgumentMapping = {}
    isInBestCandidates = true

KtTypeReference(223,229): 'Sealed'
  NO_CANDIDATES

KtUserType(223,229): 'Sealed'
  NO_CANDIDATES

KtNameReferenceExpression(223,229): 'Sealed'
  KaApplicableCallCandidate:
    candidate = KaDelegatedConstructorCall:
      contextArgumentMapping = {}
      contextArguments = []
      dispatchReceiver = null
      extensionReceiver = null
      kind = SUPER_CALL
      signature = KaFunctionSignature:
        receiverType = null
        returnType = foo.Sealed
        symbol = <constructor>(): foo.Sealed
        valueParameters = []
        contextParameters = []
        callableId = null
      typeArgumentsMapping = {}
      valueArgumentMapping = {}
    isInBestCandidates = true

KtValueArgumentList(229,231): '()'
  NO_CANDIDATES

KtClass(236,286): 'data class String(val t: kotlin.String) : Sealed()'
  NO_CANDIDATES

KtDeclarationModifierList(236,240): 'data'
  NO_CANDIDATES

KtPrimaryConstructor(253,275): '(val t: kotlin.String)'
  NO_CANDIDATES

KtParameterList(253,275): '(val t: kotlin.String)'
  NO_CANDIDATES

KtParameter(254,274): 'val t: kotlin.String'
  NO_CANDIDATES

KtTypeReference(261,274): 'kotlin.String'
  NO_CANDIDATES

KtUserType(261,274): 'kotlin.String'
  NO_CANDIDATES

KtUserType(261,267): 'kotlin'
  NO_CANDIDATES

KtNameReferenceExpression(261,267): 'kotlin'
  NO_CANDIDATES

KtNameReferenceExpression(268,274): 'String'
  NO_CANDIDATES

KtSuperTypeList(278,286): 'Sealed()'
  NO_CANDIDATES

KtSuperTypeCallEntry(278,286): 'Sealed()'
  KaApplicableCallCandidate:
    candidate = KaDelegatedConstructorCall:
      contextArgumentMapping = {}
      contextArguments = []
      dispatchReceiver = null
      extensionReceiver = null
      kind = SUPER_CALL
      signature = KaFunctionSignature:
        receiverType = null
        returnType = foo.Sealed
        symbol = <constructor>(): foo.Sealed
        valueParameters = []
        contextParameters = []
        callableId = null
      typeArgumentsMapping = {}
      valueArgumentMapping = {}
    isInBestCandidates = true

KtConstructorCalleeExpression(278,284): 'Sealed'
  KaApplicableCallCandidate:
    candidate = KaDelegatedConstructorCall:
      contextArgumentMapping = {}
      contextArguments = []
      dispatchReceiver = null
      extensionReceiver = null
      kind = SUPER_CALL
      signature = KaFunctionSignature:
        receiverType = null
        returnType = foo.Sealed
        symbol = <constructor>(): foo.Sealed
        valueParameters = []
        contextParameters = []
        callableId = null
      typeArgumentsMapping = {}
      valueArgumentMapping = {}
    isInBestCandidates = true

KtTypeReference(278,284): 'Sealed'
  NO_CANDIDATES

KtUserType(278,284): 'Sealed'
  NO_CANDIDATES

KtNameReferenceExpression(278,284): 'Sealed'
  KaApplicableCallCandidate:
    candidate = KaDelegatedConstructorCall:
      contextArgumentMapping = {}
      contextArguments = []
      dispatchReceiver = null
      extensionReceiver = null
      kind = SUPER_CALL
      signature = KaFunctionSignature:
        receiverType = null
        returnType = foo.Sealed
        symbol = <constructor>(): foo.Sealed
        valueParameters = []
        contextParameters = []
        callableId = null
      typeArgumentsMapping = {}
      valueArgumentMapping = {}
    isInBestCandidates = true

KtValueArgumentList(284,286): '()'
  NO_CANDIDATES

KtObjectDeclaration(290,298): 'object A'
  NO_CANDIDATES

KtClass(299,306): 'class B'
  NO_CANDIDATES

KtNamedFunction(308,432): 'fun sealed(s: Sealed): Int = when (s) {'
  NO_CANDIDATES

KtParameterList(318,329): '(s: Sealed)'
  NO_CANDIDATES

KtParameter(319,328): 's: Sealed'
  NO_CANDIDATES

KtTypeReference(322,328): 'Sealed'
  NO_CANDIDATES

KtUserType(322,328): 'Sealed'
  NO_CANDIDATES

KtNameReferenceExpression(322,328): 'Sealed'
  NO_CANDIDATES

KtTypeReference(331,334): 'Int'
  NO_CANDIDATES

KtUserType(331,334): 'Int'
  NO_CANDIDATES

KtNameReferenceExpression(331,334): 'Int'
  NO_CANDIDATES

KtWhenExpression(337,432): 'when (s) {'
  NO_CANDIDATES

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

KtWhenEntry(352,358): 'A -> 1'
  NO_CANDIDATES

KtWhenConditionWithExpression(352,353): 'A'
  NO_CANDIDATES

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

KtConstantExpression(357,358): '1'
  NO_CANDIDATES

KtWhenEntry(363,372): 'is B -> 2'
  NO_CANDIDATES

KtWhenConditionIsPattern(363,367): 'is B'
  NO_CANDIDATES

KtTypeReference(366,367): 'B'
  NO_CANDIDATES

KtUserType(366,367): 'B'
  NO_CANDIDATES

KtNameReferenceExpression(366,367): 'B'
  NO_CANDIDATES

KtConstantExpression(371,372): '2'
  NO_CANDIDATES

KtWhenEntry(377,383): 'C -> 3'
  NO_CANDIDATES

KtWhenConditionWithExpression(377,378): 'C'
  NO_CANDIDATES

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

KtConstantExpression(382,383): '3'
  NO_CANDIDATES

KtWhenEntry(388,397): 'is D -> 4'
  NO_CANDIDATES

KtWhenConditionIsPattern(388,392): 'is D'
  NO_CANDIDATES

KtTypeReference(391,392): 'D'
  NO_CANDIDATES

KtUserType(391,392): 'D'
  NO_CANDIDATES

KtNameReferenceExpression(391,392): 'D'
  NO_CANDIDATES

KtConstantExpression(396,397): '4'
  NO_CANDIDATES

KtWhenEntry(402,416): 'is String -> 5'
  NO_CANDIDATES

KtWhenConditionIsPattern(402,411): 'is String'
  NO_CANDIDATES

KtTypeReference(405,411): 'String'
  NO_CANDIDATES

KtUserType(405,411): 'String'
  NO_CANDIDATES

KtNameReferenceExpression(405,411): 'String'
  NO_CANDIDATES

KtConstantExpression(415,416): '5'
  NO_CANDIDATES

KtWhenEntry(421,430): 'else -> 6'
  NO_CANDIDATES

KtConstantExpression(429,430): '6'
  NO_CANDIDATES

KtNamedFunction(434,536): 'fun sealedExplicit(s: Sealed): Int = when (s) {'
  NO_CANDIDATES

KtParameterList(452,463): '(s: Sealed)'
  NO_CANDIDATES

KtParameter(453,462): 's: Sealed'
  NO_CANDIDATES

KtTypeReference(456,462): 'Sealed'
  NO_CANDIDATES

KtUserType(456,462): 'Sealed'
  NO_CANDIDATES

KtNameReferenceExpression(456,462): 'Sealed'
  NO_CANDIDATES

KtTypeReference(465,468): 'Int'
  NO_CANDIDATES

KtUserType(465,468): 'Int'
  NO_CANDIDATES

KtNameReferenceExpression(465,468): 'Int'
  NO_CANDIDATES

KtWhenExpression(471,536): 'when (s) {'
  NO_CANDIDATES

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

KtWhenEntry(486,499): 'Sealed.A -> 1'
  NO_CANDIDATES

KtWhenConditionWithExpression(486,494): 'Sealed.A'
  NO_CANDIDATES

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

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

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

KtConstantExpression(498,499): '1'
  NO_CANDIDATES

KtWhenEntry(504,520): 'is Sealed.B -> 2'
  NO_CANDIDATES

KtWhenConditionIsPattern(504,515): 'is Sealed.B'
  NO_CANDIDATES

KtTypeReference(507,515): 'Sealed.B'
  NO_CANDIDATES

KtUserType(507,515): 'Sealed.B'
  NO_CANDIDATES

KtUserType(507,513): 'Sealed'
  NO_CANDIDATES

KtNameReferenceExpression(507,513): 'Sealed'
  NO_CANDIDATES

KtNameReferenceExpression(514,515): 'B'
  NO_CANDIDATES

KtConstantExpression(519,520): '2'
  NO_CANDIDATES

KtWhenEntry(525,534): 'else -> 6'
  NO_CANDIDATES

KtConstantExpression(533,534): '6'
  NO_CANDIDATES

KtNamedFunction(538,636): 'fun topLevelExplicit(s: Sealed): Int = when (s) {'
  NO_CANDIDATES

KtParameterList(558,569): '(s: Sealed)'
  NO_CANDIDATES

KtParameter(559,568): 's: Sealed'
  NO_CANDIDATES

KtTypeReference(562,568): 'Sealed'
  NO_CANDIDATES

KtUserType(562,568): 'Sealed'
  NO_CANDIDATES

KtNameReferenceExpression(562,568): 'Sealed'
  NO_CANDIDATES

KtTypeReference(571,574): 'Int'
  NO_CANDIDATES

KtUserType(571,574): 'Int'
  NO_CANDIDATES

KtNameReferenceExpression(571,574): 'Int'
  NO_CANDIDATES

KtWhenExpression(577,636): 'when (s) {'
  NO_CANDIDATES

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

KtWhenEntry(592,602): 'foo.A -> 1'
  NO_CANDIDATES

KtWhenConditionWithExpression(592,597): 'foo.A'
  NO_CANDIDATES

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

KtNameReferenceExpression(592,595): 'foo'
  NO_CANDIDATES

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

KtConstantExpression(601,602): '1'
  NO_CANDIDATES

KtWhenEntry(607,620): 'is foo.B -> 2'
  NO_CANDIDATES

KtWhenConditionIsPattern(607,615): 'is foo.B'
  NO_CANDIDATES

KtTypeReference(610,615): 'foo.B'
  NO_CANDIDATES

KtUserType(610,615): 'foo.B'
  NO_CANDIDATES

KtUserType(610,613): 'foo'
  NO_CANDIDATES

KtNameReferenceExpression(610,613): 'foo'
  NO_CANDIDATES

KtNameReferenceExpression(614,615): 'B'
  NO_CANDIDATES

KtConstantExpression(619,620): '2'
  NO_CANDIDATES

KtWhenEntry(625,634): 'else -> 6'
  NO_CANDIDATES

KtConstantExpression(633,634): '6'
  NO_CANDIDATES

KtNamedFunction(638,696): 'fun cast1wrong(s: Sealed): Int {'
  NO_CANDIDATES

KtParameterList(652,663): '(s: Sealed)'
  NO_CANDIDATES

KtParameter(653,662): 's: Sealed'
  NO_CANDIDATES

KtTypeReference(656,662): 'Sealed'
  NO_CANDIDATES

KtUserType(656,662): 'Sealed'
  NO_CANDIDATES

KtNameReferenceExpression(656,662): 'Sealed'
  NO_CANDIDATES

KtTypeReference(665,668): 'Int'
  NO_CANDIDATES

KtUserType(665,668): 'Int'
  NO_CANDIDATES

KtNameReferenceExpression(665,668): 'Int'
  NO_CANDIDATES

KtBlockExpression(669,696): '{'
  NO_CANDIDATES

KtBinaryExpressionWithTypeRHS(675,681): 's as A'
  NO_CANDIDATES

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

KtOperationReferenceExpression(677,679): 'as'
  NO_CANDIDATES

KtTypeReference(680,681): 'A'
  NO_CANDIDATES

KtUserType(680,681): 'A'
  NO_CANDIDATES

KtNameReferenceExpression(680,681): 'A'
  NO_CANDIDATES

KtReturnExpression(686,694): 'return 1'
  NO_CANDIDATES

KtConstantExpression(693,694): '1'
  NO_CANDIDATES

KtNamedFunction(698,756): 'fun cast2wrong(s: Sealed): Int {'
  NO_CANDIDATES

KtParameterList(712,723): '(s: Sealed)'
  NO_CANDIDATES

KtParameter(713,722): 's: Sealed'
  NO_CANDIDATES

KtTypeReference(716,722): 'Sealed'
  NO_CANDIDATES

KtUserType(716,722): 'Sealed'
  NO_CANDIDATES

KtNameReferenceExpression(716,722): 'Sealed'
  NO_CANDIDATES

KtTypeReference(725,728): 'Int'
  NO_CANDIDATES

KtUserType(725,728): 'Int'
  NO_CANDIDATES

KtNameReferenceExpression(725,728): 'Int'
  NO_CANDIDATES

KtBlockExpression(729,756): '{'
  NO_CANDIDATES

KtBinaryExpressionWithTypeRHS(735,741): 's as B'
  NO_CANDIDATES

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

KtOperationReferenceExpression(737,739): 'as'
  NO_CANDIDATES

KtTypeReference(740,741): 'B'
  NO_CANDIDATES

KtUserType(740,741): 'B'
  NO_CANDIDATES

KtNameReferenceExpression(740,741): 'B'
  NO_CANDIDATES

KtReturnExpression(746,754): 'return 2'
  NO_CANDIDATES

KtConstantExpression(753,754): '2'
  NO_CANDIDATES

KtNamedFunction(758,824): 'fun cast1sealed(s: Sealed): Int {'
  NO_CANDIDATES

KtParameterList(773,784): '(s: Sealed)'
  NO_CANDIDATES

KtParameter(774,783): 's: Sealed'
  NO_CANDIDATES

KtTypeReference(777,783): 'Sealed'
  NO_CANDIDATES

KtUserType(777,783): 'Sealed'
  NO_CANDIDATES

KtNameReferenceExpression(777,783): 'Sealed'
  NO_CANDIDATES

KtTypeReference(786,789): 'Int'
  NO_CANDIDATES

KtUserType(786,789): 'Int'
  NO_CANDIDATES

KtNameReferenceExpression(786,789): 'Int'
  NO_CANDIDATES

KtBlockExpression(790,824): '{'
  NO_CANDIDATES

KtBinaryExpressionWithTypeRHS(796,809): 's as Sealed.A'
  NO_CANDIDATES

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

KtOperationReferenceExpression(798,800): 'as'
  NO_CANDIDATES

KtTypeReference(801,809): 'Sealed.A'
  NO_CANDIDATES

KtUserType(801,809): 'Sealed.A'
  NO_CANDIDATES

KtUserType(801,807): 'Sealed'
  NO_CANDIDATES

KtNameReferenceExpression(801,807): 'Sealed'
  NO_CANDIDATES

KtNameReferenceExpression(808,809): 'A'
  NO_CANDIDATES

KtReturnExpression(814,822): 'return 1'
  NO_CANDIDATES

KtConstantExpression(821,822): '1'
  NO_CANDIDATES

KtNamedFunction(826,892): 'fun cast2sealed(s: Sealed): Int {'
  NO_CANDIDATES

KtParameterList(841,852): '(s: Sealed)'
  NO_CANDIDATES

KtParameter(842,851): 's: Sealed'
  NO_CANDIDATES

KtTypeReference(845,851): 'Sealed'
  NO_CANDIDATES

KtUserType(845,851): 'Sealed'
  NO_CANDIDATES

KtNameReferenceExpression(845,851): 'Sealed'
  NO_CANDIDATES

KtTypeReference(854,857): 'Int'
  NO_CANDIDATES

KtUserType(854,857): 'Int'
  NO_CANDIDATES

KtNameReferenceExpression(854,857): 'Int'
  NO_CANDIDATES

KtBlockExpression(858,892): '{'
  NO_CANDIDATES

KtBinaryExpressionWithTypeRHS(864,877): 's as Sealed.B'
  NO_CANDIDATES

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

KtOperationReferenceExpression(866,868): 'as'
  NO_CANDIDATES

KtTypeReference(869,877): 'Sealed.B'
  NO_CANDIDATES

KtUserType(869,877): 'Sealed.B'
  NO_CANDIDATES

KtUserType(869,875): 'Sealed'
  NO_CANDIDATES

KtNameReferenceExpression(869,875): 'Sealed'
  NO_CANDIDATES

KtNameReferenceExpression(876,877): 'B'
  NO_CANDIDATES

KtReturnExpression(882,890): 'return 2'
  NO_CANDIDATES

KtConstantExpression(889,890): '2'
  NO_CANDIDATES

KtNamedFunction(894,959): 'fun cast1topLevel(s: Sealed): Int {'
  NO_CANDIDATES

KtParameterList(911,922): '(s: Sealed)'
  NO_CANDIDATES

KtParameter(912,921): 's: Sealed'
  NO_CANDIDATES

KtTypeReference(915,921): 'Sealed'
  NO_CANDIDATES

KtUserType(915,921): 'Sealed'
  NO_CANDIDATES

KtNameReferenceExpression(915,921): 'Sealed'
  NO_CANDIDATES

KtTypeReference(924,927): 'Int'
  NO_CANDIDATES

KtUserType(924,927): 'Int'
  NO_CANDIDATES

KtNameReferenceExpression(924,927): 'Int'
  NO_CANDIDATES

KtBlockExpression(928,959): '{'
  NO_CANDIDATES

KtBinaryExpressionWithTypeRHS(934,944): 's as foo.A'
  NO_CANDIDATES

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

KtOperationReferenceExpression(936,938): 'as'
  NO_CANDIDATES

KtTypeReference(939,944): 'foo.A'
  NO_CANDIDATES

KtUserType(939,944): 'foo.A'
  NO_CANDIDATES

KtUserType(939,942): 'foo'
  NO_CANDIDATES

KtNameReferenceExpression(939,942): 'foo'
  NO_CANDIDATES

KtNameReferenceExpression(943,944): 'A'
  NO_CANDIDATES

KtReturnExpression(949,957): 'return 1'
  NO_CANDIDATES

KtConstantExpression(956,957): '1'
  NO_CANDIDATES

KtNamedFunction(961,1026): 'fun cast2topLevel(s: Sealed): Int {'
  NO_CANDIDATES

KtParameterList(978,989): '(s: Sealed)'
  NO_CANDIDATES

KtParameter(979,988): 's: Sealed'
  NO_CANDIDATES

KtTypeReference(982,988): 'Sealed'
  NO_CANDIDATES

KtUserType(982,988): 'Sealed'
  NO_CANDIDATES

KtNameReferenceExpression(982,988): 'Sealed'
  NO_CANDIDATES

KtTypeReference(991,994): 'Int'
  NO_CANDIDATES

KtUserType(991,994): 'Int'
  NO_CANDIDATES

KtNameReferenceExpression(991,994): 'Int'
  NO_CANDIDATES

KtBlockExpression(995,1026): '{'
  NO_CANDIDATES

KtBinaryExpressionWithTypeRHS(1001,1011): 's as foo.B'
  NO_CANDIDATES

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

KtOperationReferenceExpression(1003,1005): 'as'
  NO_CANDIDATES

KtTypeReference(1006,1011): 'foo.B'
  NO_CANDIDATES

KtUserType(1006,1011): 'foo.B'
  NO_CANDIDATES

KtUserType(1006,1009): 'foo'
  NO_CANDIDATES

KtNameReferenceExpression(1006,1009): 'foo'
  NO_CANDIDATES

KtNameReferenceExpression(1010,1011): 'B'
  NO_CANDIDATES

KtReturnExpression(1016,1024): 'return 2'
  NO_CANDIDATES

KtConstantExpression(1023,1024): '2'
  NO_CANDIDATES

KtNamedFunction(1028,1083): 'fun cast3ok(s: Sealed): Int {'
  NO_CANDIDATES

KtParameterList(1039,1050): '(s: Sealed)'
  NO_CANDIDATES

KtParameter(1040,1049): 's: Sealed'
  NO_CANDIDATES

KtTypeReference(1043,1049): 'Sealed'
  NO_CANDIDATES

KtUserType(1043,1049): 'Sealed'
  NO_CANDIDATES

KtNameReferenceExpression(1043,1049): 'Sealed'
  NO_CANDIDATES

KtTypeReference(1052,1055): 'Int'
  NO_CANDIDATES

KtUserType(1052,1055): 'Int'
  NO_CANDIDATES

KtNameReferenceExpression(1052,1055): 'Int'
  NO_CANDIDATES

KtBlockExpression(1056,1083): '{'
  NO_CANDIDATES

KtBinaryExpressionWithTypeRHS(1062,1068): 's as C'
  NO_CANDIDATES

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

KtOperationReferenceExpression(1064,1066): 'as'
  NO_CANDIDATES

KtTypeReference(1067,1068): 'C'
  NO_CANDIDATES

KtUserType(1067,1068): 'C'
  NO_CANDIDATES

KtNameReferenceExpression(1067,1068): 'C'
  NO_CANDIDATES

KtReturnExpression(1073,1081): 'return 3'
  NO_CANDIDATES

KtConstantExpression(1080,1081): '3'
  NO_CANDIDATES

KtNamedFunction(1085,1140): 'fun cast4ok(s: Sealed): Int {'
  NO_CANDIDATES

KtParameterList(1096,1107): '(s: Sealed)'
  NO_CANDIDATES

KtParameter(1097,1106): 's: Sealed'
  NO_CANDIDATES

KtTypeReference(1100,1106): 'Sealed'
  NO_CANDIDATES

KtUserType(1100,1106): 'Sealed'
  NO_CANDIDATES

KtNameReferenceExpression(1100,1106): 'Sealed'
  NO_CANDIDATES

KtTypeReference(1109,1112): 'Int'
  NO_CANDIDATES

KtUserType(1109,1112): 'Int'
  NO_CANDIDATES

KtNameReferenceExpression(1109,1112): 'Int'
  NO_CANDIDATES

KtBlockExpression(1113,1140): '{'
  NO_CANDIDATES

KtBinaryExpressionWithTypeRHS(1119,1125): 's as D'
  NO_CANDIDATES

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

KtOperationReferenceExpression(1121,1123): 'as'
  NO_CANDIDATES

KtTypeReference(1124,1125): 'D'
  NO_CANDIDATES

KtUserType(1124,1125): 'D'
  NO_CANDIDATES

KtNameReferenceExpression(1124,1125): 'D'
  NO_CANDIDATES

KtReturnExpression(1130,1138): 'return 4'
  NO_CANDIDATES

KtConstantExpression(1137,1138): '4'
  NO_CANDIDATES

KtNamedFunction(1142,1189): 'fun equality1wrong(s: Sealed): Boolean = s == A'
  NO_CANDIDATES

KtParameterList(1160,1171): '(s: Sealed)'
  NO_CANDIDATES

KtParameter(1161,1170): 's: Sealed'
  NO_CANDIDATES

KtTypeReference(1164,1170): 'Sealed'
  NO_CANDIDATES

KtUserType(1164,1170): 'Sealed'
  NO_CANDIDATES

KtNameReferenceExpression(1164,1170): 'Sealed'
  NO_CANDIDATES

KtTypeReference(1173,1180): 'Boolean'
  NO_CANDIDATES

KtUserType(1173,1180): 'Boolean'
  NO_CANDIDATES

KtNameReferenceExpression(1173,1180): 'Boolean'
  NO_CANDIDATES

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

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

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

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

KtNamedFunction(1190,1245): 'fun equality1sealed(s: Sealed): Boolean = s == Sealed.A'
  NO_CANDIDATES

KtParameterList(1209,1220): '(s: Sealed)'
  NO_CANDIDATES

KtParameter(1210,1219): 's: Sealed'
  NO_CANDIDATES

KtTypeReference(1213,1219): 'Sealed'
  NO_CANDIDATES

KtUserType(1213,1219): 'Sealed'
  NO_CANDIDATES

KtNameReferenceExpression(1213,1219): 'Sealed'
  NO_CANDIDATES

KtTypeReference(1222,1229): 'Boolean'
  NO_CANDIDATES

KtUserType(1222,1229): 'Boolean'
  NO_CANDIDATES

KtNameReferenceExpression(1222,1229): 'Boolean'
  NO_CANDIDATES

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

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

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

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

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

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

KtNamedFunction(1246,1300): 'fun equality1topLevel(s: Sealed): Boolean = s == foo.A'
  NO_CANDIDATES

KtParameterList(1267,1278): '(s: Sealed)'
  NO_CANDIDATES

KtParameter(1268,1277): 's: Sealed'
  NO_CANDIDATES

KtTypeReference(1271,1277): 'Sealed'
  NO_CANDIDATES

KtUserType(1271,1277): 'Sealed'
  NO_CANDIDATES

KtNameReferenceExpression(1271,1277): 'Sealed'
  NO_CANDIDATES

KtTypeReference(1280,1287): 'Boolean'
  NO_CANDIDATES

KtUserType(1280,1287): 'Boolean'
  NO_CANDIDATES

KtNameReferenceExpression(1280,1287): 'Boolean'
  NO_CANDIDATES

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

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

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

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

KtNameReferenceExpression(1295,1298): 'foo'
  NO_CANDIDATES

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

KtNamedFunction(1301,1352): 'fun equality2ok(s: Sealed): Boolean = s == Sealed.C'
  NO_CANDIDATES

KtParameterList(1316,1327): '(s: Sealed)'
  NO_CANDIDATES

KtParameter(1317,1326): 's: Sealed'
  NO_CANDIDATES

KtTypeReference(1320,1326): 'Sealed'
  NO_CANDIDATES

KtUserType(1320,1326): 'Sealed'
  NO_CANDIDATES

KtNameReferenceExpression(1320,1326): 'Sealed'
  NO_CANDIDATES

KtTypeReference(1329,1336): 'Boolean'
  NO_CANDIDATES

KtUserType(1329,1336): 'Boolean'
  NO_CANDIDATES

KtNameReferenceExpression(1329,1336): 'Boolean'
  NO_CANDIDATES

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

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

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

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

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

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