FILE fqName:<root> fileName:/smartCastOnFakeOverrideReceiver.kt
  CLASS CLASS name:A modality:OPEN visibility:public superTypes:[kotlin.Any]
    $this: VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.A
    CONSTRUCTOR visibility:public <> () returnType:<root>.A [primary]
      BLOCK_BODY
        DELEGATING_CONSTRUCTOR_CALL 'public constructor <init> () [primary] declared in kotlin.Any'
        INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:A modality:OPEN visibility:public superTypes:[kotlin.Any]'
    FUN name:f visibility:public modality:FINAL <> ($this:<root>.A) returnType:kotlin.Int
      $this: VALUE_PARAMETER name:<this> type:<root>.A
      BLOCK_BODY
        RETURN type=kotlin.Nothing from='public final fun f (): kotlin.Int declared in <root>.A'
          CONST Int type=kotlin.Int value=1
    PROPERTY name:aVal visibility:public modality:FINAL [val]
      FIELD PROPERTY_BACKING_FIELD name:aVal type:kotlin.Int visibility:private [final]
        EXPRESSION_BODY
          CONST Int type=kotlin.Int value=42
      FUN DEFAULT_PROPERTY_ACCESSOR name:<get-aVal> visibility:public modality:FINAL <> ($this:<root>.A) returnType:kotlin.Int
        correspondingProperty: PROPERTY name:aVal visibility:public modality:FINAL [val]
        $this: VALUE_PARAMETER name:<this> type:<root>.A
        BLOCK_BODY
          RETURN type=kotlin.Nothing from='public final fun <get-aVal> (): kotlin.Int declared in <root>.A'
            GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:aVal type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null
              receiver: GET_VAR '<this>: <root>.A declared in <root>.A.<get-aVal>' type=<root>.A origin=null
    FUN name:testA1 visibility:public modality:FINAL <> ($this:<root>.A, x:kotlin.Any) returnType:kotlin.Int?
      $this: VALUE_PARAMETER name:<this> type:<root>.A
      VALUE_PARAMETER name:x index:0 type:kotlin.Any
      BLOCK_BODY
        RETURN type=kotlin.Nothing from='public final fun testA1 (x: kotlin.Any): kotlin.Int? declared in <root>.A'
          WHEN type=kotlin.Int? origin=IF
            BRANCH
              if: TYPE_OP type=kotlin.Boolean origin=INSTANCEOF typeOperand=<root>.B
                GET_VAR 'x: kotlin.Any declared in <root>.A.testA1' type=kotlin.Any origin=null
              then: CALL 'public final fun f (): kotlin.Int [fake_override] declared in <root>.B' type=kotlin.Int origin=null
                $this: TYPE_OP type=<root>.B origin=IMPLICIT_CAST typeOperand=<root>.B
                  GET_VAR 'x: kotlin.Any declared in <root>.A.testA1' type=kotlin.Any origin=null
            BRANCH
              if: CONST Boolean type=kotlin.Boolean value=true
              then: CONST Null type=kotlin.Nothing? value=null
    FUN name:testA2 visibility:public modality:FINAL <> ($this:<root>.A, x:kotlin.Any) returnType:kotlin.Int?
      $this: VALUE_PARAMETER name:<this> type:<root>.A
      VALUE_PARAMETER name:x index:0 type:kotlin.Any
      BLOCK_BODY
        RETURN type=kotlin.Nothing from='public final fun testA2 (x: kotlin.Any): kotlin.Int? declared in <root>.A'
          WHEN type=kotlin.Int? origin=IF
            BRANCH
              if: TYPE_OP type=kotlin.Boolean origin=INSTANCEOF typeOperand=<root>.B
                GET_VAR 'x: kotlin.Any declared in <root>.A.testA2' type=kotlin.Any origin=null
              then: CALL 'public final fun <get-aVal> (): kotlin.Int [fake_override] declared in <root>.B' type=kotlin.Int origin=GET_PROPERTY
                $this: TYPE_OP type=<root>.B origin=IMPLICIT_CAST typeOperand=<root>.B
                  GET_VAR 'x: kotlin.Any declared in <root>.A.testA2' type=kotlin.Any origin=null
            BRANCH
              if: CONST Boolean type=kotlin.Boolean value=true
              then: CONST Null type=kotlin.Nothing? value=null
    FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator]
      overridden:
        public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any
      $this: VALUE_PARAMETER name:<this> type:kotlin.Any
      VALUE_PARAMETER name:other index:0 type:kotlin.Any?
    FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int [fake_override]
      overridden:
        public open fun hashCode (): kotlin.Int declared in kotlin.Any
      $this: VALUE_PARAMETER name:<this> type:kotlin.Any
    FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String [fake_override]
      overridden:
        public open fun toString (): kotlin.String declared in kotlin.Any
      $this: VALUE_PARAMETER name:<this> type:kotlin.Any
  CLASS CLASS name:B modality:FINAL visibility:public superTypes:[<root>.A]
    $this: VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.B
    CONSTRUCTOR visibility:public <> () returnType:<root>.B [primary]
      BLOCK_BODY
        DELEGATING_CONSTRUCTOR_CALL 'public constructor <init> () [primary] declared in <root>.A'
        INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:B modality:FINAL visibility:public superTypes:[<root>.A]'
    FUN name:testB1 visibility:public modality:FINAL <> ($this:<root>.B, x:kotlin.Any) returnType:kotlin.Int?
      $this: VALUE_PARAMETER name:<this> type:<root>.B
      VALUE_PARAMETER name:x index:0 type:kotlin.Any
      BLOCK_BODY
        RETURN type=kotlin.Nothing from='public final fun testB1 (x: kotlin.Any): kotlin.Int? declared in <root>.B'
          WHEN type=kotlin.Int? origin=IF
            BRANCH
              if: TYPE_OP type=kotlin.Boolean origin=INSTANCEOF typeOperand=<root>.B
                GET_VAR 'x: kotlin.Any declared in <root>.B.testB1' type=kotlin.Any origin=null
              then: CALL 'public final fun f (): kotlin.Int [fake_override] declared in <root>.B' type=kotlin.Int origin=null
                $this: TYPE_OP type=<root>.B origin=IMPLICIT_CAST typeOperand=<root>.B
                  GET_VAR 'x: kotlin.Any declared in <root>.B.testB1' type=kotlin.Any origin=null
            BRANCH
              if: CONST Boolean type=kotlin.Boolean value=true
              then: CONST Null type=kotlin.Nothing? value=null
    FUN name:testB2 visibility:public modality:FINAL <> ($this:<root>.B, x:kotlin.Any) returnType:kotlin.Int?
      $this: VALUE_PARAMETER name:<this> type:<root>.B
      VALUE_PARAMETER name:x index:0 type:kotlin.Any
      BLOCK_BODY
        RETURN type=kotlin.Nothing from='public final fun testB2 (x: kotlin.Any): kotlin.Int? declared in <root>.B'
          WHEN type=kotlin.Int? origin=IF
            BRANCH
              if: TYPE_OP type=kotlin.Boolean origin=INSTANCEOF typeOperand=<root>.B
                GET_VAR 'x: kotlin.Any declared in <root>.B.testB2' type=kotlin.Any origin=null
              then: CALL 'public final fun <get-aVal> (): kotlin.Int [fake_override] declared in <root>.B' type=kotlin.Int origin=GET_PROPERTY
                $this: TYPE_OP type=<root>.B origin=IMPLICIT_CAST typeOperand=<root>.B
                  GET_VAR 'x: kotlin.Any declared in <root>.B.testB2' type=kotlin.Any origin=null
            BRANCH
              if: CONST Boolean type=kotlin.Boolean value=true
              then: CONST Null type=kotlin.Nothing? value=null
    FUN FAKE_OVERRIDE name:f visibility:public modality:FINAL <> ($this:<root>.A) returnType:kotlin.Int [fake_override]
      overridden:
        public final fun f (): kotlin.Int declared in <root>.A
      $this: VALUE_PARAMETER name:<this> type:<root>.A
    PROPERTY FAKE_OVERRIDE name:aVal visibility:public modality:FINAL [fake_override,val]
      overridden:
        public final aVal: kotlin.Int [val]
      FUN FAKE_OVERRIDE name:<get-aVal> visibility:public modality:FINAL <> ($this:<root>.A) returnType:kotlin.Int [fake_override]
        correspondingProperty: PROPERTY FAKE_OVERRIDE name:aVal visibility:public modality:FINAL [fake_override,val]
        overridden:
          public final fun <get-aVal> (): kotlin.Int declared in <root>.A
        $this: VALUE_PARAMETER name:<this> type:<root>.A
    FUN FAKE_OVERRIDE name:testA1 visibility:public modality:FINAL <> ($this:<root>.A, x:kotlin.Any) returnType:kotlin.Int? [fake_override]
      overridden:
        public final fun testA1 (x: kotlin.Any): kotlin.Int? declared in <root>.A
      $this: VALUE_PARAMETER name:<this> type:<root>.A
      VALUE_PARAMETER name:x index:0 type:kotlin.Any
    FUN FAKE_OVERRIDE name:testA2 visibility:public modality:FINAL <> ($this:<root>.A, x:kotlin.Any) returnType:kotlin.Int? [fake_override]
      overridden:
        public final fun testA2 (x: kotlin.Any): kotlin.Int? declared in <root>.A
      $this: VALUE_PARAMETER name:<this> type:<root>.A
      VALUE_PARAMETER name:x index:0 type:kotlin.Any
    FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator]
      overridden:
        public open fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in <root>.A
      $this: VALUE_PARAMETER name:<this> type:kotlin.Any
      VALUE_PARAMETER name:other index:0 type:kotlin.Any?
    FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int [fake_override]
      overridden:
        public open fun hashCode (): kotlin.Int [fake_override] declared in <root>.A
      $this: VALUE_PARAMETER name:<this> type:kotlin.Any
    FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String [fake_override]
      overridden:
        public open fun toString (): kotlin.String [fake_override] declared in <root>.A
      $this: VALUE_PARAMETER name:<this> type:kotlin.Any
  CLASS CLASS name:GA modality:OPEN visibility:public superTypes:[kotlin.Any]
    $this: VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.GA<T of <root>.GA>
    TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false
    CONSTRUCTOR visibility:public <> () returnType:<root>.GA<T of <root>.GA> [primary]
      BLOCK_BODY
        DELEGATING_CONSTRUCTOR_CALL 'public constructor <init> () [primary] declared in kotlin.Any'
        INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:GA modality:OPEN visibility:public superTypes:[kotlin.Any]'
    FUN name:f visibility:public modality:FINAL <> ($this:<root>.GA<T of <root>.GA>) returnType:kotlin.Int
      $this: VALUE_PARAMETER name:<this> type:<root>.GA<T of <root>.GA>
      BLOCK_BODY
        RETURN type=kotlin.Nothing from='public final fun f (): kotlin.Int declared in <root>.GA'
          CONST Int type=kotlin.Int value=1
    PROPERTY name:aVal visibility:public modality:FINAL [val]
      FIELD PROPERTY_BACKING_FIELD name:aVal type:kotlin.Int visibility:private [final]
        EXPRESSION_BODY
          CONST Int type=kotlin.Int value=42
      FUN DEFAULT_PROPERTY_ACCESSOR name:<get-aVal> visibility:public modality:FINAL <> ($this:<root>.GA<T of <root>.GA>) returnType:kotlin.Int
        correspondingProperty: PROPERTY name:aVal visibility:public modality:FINAL [val]
        $this: VALUE_PARAMETER name:<this> type:<root>.GA<T of <root>.GA>
        BLOCK_BODY
          RETURN type=kotlin.Nothing from='public final fun <get-aVal> (): kotlin.Int declared in <root>.GA'
            GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:aVal type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null
              receiver: GET_VAR '<this>: <root>.GA<T of <root>.GA> declared in <root>.GA.<get-aVal>' type=<root>.GA<T of <root>.GA> origin=null
    FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator]
      overridden:
        public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any
      $this: VALUE_PARAMETER name:<this> type:kotlin.Any
      VALUE_PARAMETER name:other index:0 type:kotlin.Any?
    FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int [fake_override]
      overridden:
        public open fun hashCode (): kotlin.Int declared in kotlin.Any
      $this: VALUE_PARAMETER name:<this> type:kotlin.Any
    FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String [fake_override]
      overridden:
        public open fun toString (): kotlin.String declared in kotlin.Any
      $this: VALUE_PARAMETER name:<this> type:kotlin.Any
  CLASS CLASS name:GB modality:FINAL visibility:public superTypes:[<root>.GA<T of <root>.GB>]
    $this: VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.GB<T of <root>.GB, S of <root>.GB>
    TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false
    TYPE_PARAMETER name:S index:1 variance: superTypes:[kotlin.Any?] reified:false
    CONSTRUCTOR visibility:public <> () returnType:<root>.GB<T of <root>.GB, S of <root>.GB> [primary]
      BLOCK_BODY
        DELEGATING_CONSTRUCTOR_CALL 'public constructor <init> () [primary] declared in <root>.GA'
          <T>: T of <root>.GB
        INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:GB modality:FINAL visibility:public superTypes:[<root>.GA<T of <root>.GB>]'
    FUN name:testGB1 visibility:public modality:FINAL <> ($this:<root>.GB<T of <root>.GB, S of <root>.GB>, a:kotlin.Any) returnType:kotlin.Unit
      $this: VALUE_PARAMETER name:<this> type:<root>.GB<T of <root>.GB, S of <root>.GB>
      VALUE_PARAMETER name:a index:0 type:kotlin.Any
      BLOCK_BODY
        TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit
          TYPE_OP type=<root>.GB<kotlin.Int, kotlin.String> origin=CAST typeOperand=<root>.GB<kotlin.Int, kotlin.String>
            GET_VAR 'a: kotlin.Any declared in <root>.GB.testGB1' type=kotlin.Any origin=null
        TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit
          CALL 'public final fun f (): kotlin.Int [fake_override] declared in <root>.GB' type=kotlin.Int origin=null
            $this: TYPE_OP type=<root>.GB<kotlin.Int, kotlin.String> origin=IMPLICIT_CAST typeOperand=<root>.GB<kotlin.Int, kotlin.String>
              GET_VAR 'a: kotlin.Any declared in <root>.GB.testGB1' type=kotlin.Any origin=null
        TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit
          CALL 'public final fun <get-aVal> (): kotlin.Int [fake_override] declared in <root>.GB' type=kotlin.Int origin=GET_PROPERTY
            $this: TYPE_OP type=<root>.GB<kotlin.Int, kotlin.String> origin=IMPLICIT_CAST typeOperand=<root>.GB<kotlin.Int, kotlin.String>
              GET_VAR 'a: kotlin.Any declared in <root>.GB.testGB1' type=kotlin.Any origin=null
    FUN FAKE_OVERRIDE name:f visibility:public modality:FINAL <> ($this:<root>.GA<T of <root>.GB>) returnType:kotlin.Int [fake_override]
      overridden:
        public final fun f (): kotlin.Int declared in <root>.GA
      $this: VALUE_PARAMETER name:<this> type:<root>.GA<T of <root>.GB>
    PROPERTY FAKE_OVERRIDE name:aVal visibility:public modality:FINAL [fake_override,val]
      overridden:
        public final aVal: kotlin.Int [val]
      FUN FAKE_OVERRIDE name:<get-aVal> visibility:public modality:FINAL <> ($this:<root>.GA<T of <root>.GB>) returnType:kotlin.Int [fake_override]
        correspondingProperty: PROPERTY FAKE_OVERRIDE name:aVal visibility:public modality:FINAL [fake_override,val]
        overridden:
          public final fun <get-aVal> (): kotlin.Int declared in <root>.GA
        $this: VALUE_PARAMETER name:<this> type:<root>.GA<T of <root>.GB>
    FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator]
      overridden:
        public open fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in <root>.GA
      $this: VALUE_PARAMETER name:<this> type:kotlin.Any
      VALUE_PARAMETER name:other index:0 type:kotlin.Any?
    FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int [fake_override]
      overridden:
        public open fun hashCode (): kotlin.Int [fake_override] declared in <root>.GA
      $this: VALUE_PARAMETER name:<this> type:kotlin.Any
    FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String [fake_override]
      overridden:
        public open fun toString (): kotlin.String [fake_override] declared in <root>.GA
      $this: VALUE_PARAMETER name:<this> type:kotlin.Any
