FILE fqName:<root> fileName:/castsInsideCoroutineInference.kt
  CLASS CLASS name:ChannelCoroutine modality:OPEN visibility:public superTypes:[kotlin.Any]
    thisReceiver: VALUE_PARAMETER INSTANCE_RECEIVER kind:DispatchReceiver name:<this> type:<root>.ChannelCoroutine<E of <root>.ChannelCoroutine>
    TYPE_PARAMETER name:E index:0 variance: superTypes:[kotlin.Any?] reified:false
    CONSTRUCTOR visibility:public returnType:<root>.ChannelCoroutine<E of <root>.ChannelCoroutine> [primary]
      BLOCK_BODY
        DELEGATING_CONSTRUCTOR_CALL 'public constructor <init> () declared in kotlin.Any'
        INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:ChannelCoroutine modality:OPEN visibility:public superTypes:[kotlin.Any]' type=kotlin.Unit
    FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN returnType:kotlin.Boolean [fake_override,operator]
      VALUE_PARAMETER kind:DispatchReceiver name:<this> index:0 type:kotlin.Any
      VALUE_PARAMETER kind:Regular name:other index:1 type:kotlin.Any?
      overridden:
        public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any
    FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN returnType:kotlin.Int [fake_override]
      VALUE_PARAMETER kind:DispatchReceiver name:<this> index:0 type:kotlin.Any
      overridden:
        public open fun hashCode (): kotlin.Int declared in kotlin.Any
    FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN returnType:kotlin.String [fake_override]
      VALUE_PARAMETER kind:DispatchReceiver name:<this> index:0 type:kotlin.Any
      overridden:
        public open fun toString (): kotlin.String declared in kotlin.Any
    FUN name:sendFair visibility:public modality:FINAL returnType:kotlin.Unit [suspend]
      VALUE_PARAMETER kind:DispatchReceiver name:<this> index:0 type:<root>.ChannelCoroutine<E of <root>.ChannelCoroutine>
      VALUE_PARAMETER kind:Regular name:element index:1 type:E of <root>.ChannelCoroutine
      BLOCK_BODY
  CLASS CLASS name:SafeCollector modality:FINAL visibility:public superTypes:[<root>.FlowCollector<T of <root>.SafeCollector>]
    thisReceiver: VALUE_PARAMETER INSTANCE_RECEIVER kind:DispatchReceiver name:<this> type:<root>.SafeCollector<T of <root>.SafeCollector>
    TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false
    PROPERTY name:collector visibility:internal modality:FINAL [val]
      FIELD PROPERTY_BACKING_FIELD name:collector type:<root>.FlowCollector<T of <root>.SafeCollector> visibility:private [final]
        EXPRESSION_BODY
          GET_VAR 'collector: <root>.FlowCollector<T of <root>.SafeCollector> declared in <root>.SafeCollector.<init>' type=<root>.FlowCollector<T of <root>.SafeCollector> origin=INITIALIZE_PROPERTY_FROM_PARAMETER
      FUN DEFAULT_PROPERTY_ACCESSOR name:<get-collector> visibility:internal modality:FINAL returnType:<root>.FlowCollector<T of <root>.SafeCollector>
        VALUE_PARAMETER kind:DispatchReceiver name:<this> index:0 type:<root>.SafeCollector<T of <root>.SafeCollector>
        correspondingProperty: PROPERTY name:collector visibility:internal modality:FINAL [val]
        BLOCK_BODY
          RETURN type=kotlin.Nothing from='internal final fun <get-collector> (): <root>.FlowCollector<T of <root>.SafeCollector> declared in <root>.SafeCollector'
            GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:collector type:<root>.FlowCollector<T of <root>.SafeCollector> visibility:private [final]' type=<root>.FlowCollector<T of <root>.SafeCollector> origin=null
              receiver: GET_VAR '<this>: <root>.SafeCollector<T of <root>.SafeCollector> declared in <root>.SafeCollector.<get-collector>' type=<root>.SafeCollector<T of <root>.SafeCollector> origin=null
    CONSTRUCTOR visibility:public returnType:<root>.SafeCollector<T of <root>.SafeCollector> [primary]
      VALUE_PARAMETER kind:Regular name:collector index:0 type:<root>.FlowCollector<T of <root>.SafeCollector>
      BLOCK_BODY
        DELEGATING_CONSTRUCTOR_CALL 'public constructor <init> () declared in kotlin.Any'
        INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:SafeCollector modality:FINAL visibility:public superTypes:[<root>.FlowCollector<T of <root>.SafeCollector>]' type=kotlin.Unit
    FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN returnType:kotlin.Boolean [fake_override,operator]
      VALUE_PARAMETER kind:DispatchReceiver name:<this> index:0 type:kotlin.Any
      VALUE_PARAMETER kind:Regular name:other index:1 type:kotlin.Any?
      overridden:
        public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in <root>.FlowCollector
    FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN returnType:kotlin.Int [fake_override]
      VALUE_PARAMETER kind:DispatchReceiver name:<this> index:0 type:kotlin.Any
      overridden:
        public open fun hashCode (): kotlin.Int declared in <root>.FlowCollector
    FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN returnType:kotlin.String [fake_override]
      VALUE_PARAMETER kind:DispatchReceiver name:<this> index:0 type:kotlin.Any
      overridden:
        public open fun toString (): kotlin.String declared in <root>.FlowCollector
    FUN name:emit visibility:public modality:OPEN returnType:kotlin.Unit [suspend]
      VALUE_PARAMETER kind:DispatchReceiver name:<this> index:0 type:<root>.SafeCollector<T of <root>.SafeCollector>
      VALUE_PARAMETER kind:Regular name:value index:1 type:T of <root>.SafeCollector
      overridden:
        public abstract fun emit (value: T of <root>.FlowCollector): kotlin.Unit declared in <root>.FlowCollector
      BLOCK_BODY
  CLASS INTERFACE name:CoroutineScope modality:ABSTRACT visibility:public superTypes:[kotlin.Any]
    thisReceiver: VALUE_PARAMETER INSTANCE_RECEIVER kind:DispatchReceiver name:<this> type:<root>.CoroutineScope
    FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN returnType:kotlin.Boolean [fake_override,operator]
      VALUE_PARAMETER kind:DispatchReceiver name:<this> index:0 type:kotlin.Any
      VALUE_PARAMETER kind:Regular name:other index:1 type:kotlin.Any?
      overridden:
        public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any
    FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN returnType:kotlin.Int [fake_override]
      VALUE_PARAMETER kind:DispatchReceiver name:<this> index:0 type:kotlin.Any
      overridden:
        public open fun hashCode (): kotlin.Int declared in kotlin.Any
    FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN returnType:kotlin.String [fake_override]
      VALUE_PARAMETER kind:DispatchReceiver name:<this> index:0 type:kotlin.Any
      overridden:
        public open fun toString (): kotlin.String declared in kotlin.Any
  CLASS INTERFACE name:Flow modality:ABSTRACT visibility:public superTypes:[kotlin.Any]
    thisReceiver: VALUE_PARAMETER INSTANCE_RECEIVER kind:DispatchReceiver name:<this> type:<root>.Flow<T of <root>.Flow>
    TYPE_PARAMETER name:T index:0 variance:out superTypes:[kotlin.Any?] reified:false
    FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN returnType:kotlin.Boolean [fake_override,operator]
      VALUE_PARAMETER kind:DispatchReceiver name:<this> index:0 type:kotlin.Any
      VALUE_PARAMETER kind:Regular name:other index:1 type:kotlin.Any?
      overridden:
        public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any
    FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN returnType:kotlin.Int [fake_override]
      VALUE_PARAMETER kind:DispatchReceiver name:<this> index:0 type:kotlin.Any
      overridden:
        public open fun hashCode (): kotlin.Int declared in kotlin.Any
    FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN returnType:kotlin.String [fake_override]
      VALUE_PARAMETER kind:DispatchReceiver name:<this> index:0 type:kotlin.Any
      overridden:
        public open fun toString (): kotlin.String declared in kotlin.Any
    FUN name:collect visibility:public modality:ABSTRACT returnType:kotlin.Unit [suspend]
      VALUE_PARAMETER kind:DispatchReceiver name:<this> index:0 type:<root>.Flow<T of <root>.Flow>
      VALUE_PARAMETER kind:Regular name:collector index:1 type:<root>.FlowCollector<T of <root>.Flow>
  CLASS INTERFACE name:FlowCollector modality:ABSTRACT visibility:public superTypes:[kotlin.Any]
    thisReceiver: VALUE_PARAMETER INSTANCE_RECEIVER kind:DispatchReceiver name:<this> type:<root>.FlowCollector<T of <root>.FlowCollector>
    TYPE_PARAMETER name:T index:0 variance:in superTypes:[kotlin.Any?] reified:false
    FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN returnType:kotlin.Boolean [fake_override,operator]
      VALUE_PARAMETER kind:DispatchReceiver name:<this> index:0 type:kotlin.Any
      VALUE_PARAMETER kind:Regular name:other index:1 type:kotlin.Any?
      overridden:
        public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any
    FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN returnType:kotlin.Int [fake_override]
      VALUE_PARAMETER kind:DispatchReceiver name:<this> index:0 type:kotlin.Any
      overridden:
        public open fun hashCode (): kotlin.Int declared in kotlin.Any
    FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN returnType:kotlin.String [fake_override]
      VALUE_PARAMETER kind:DispatchReceiver name:<this> index:0 type:kotlin.Any
      overridden:
        public open fun toString (): kotlin.String declared in kotlin.Any
    FUN name:emit visibility:public modality:ABSTRACT returnType:kotlin.Unit [suspend]
      VALUE_PARAMETER kind:DispatchReceiver name:<this> index:0 type:<root>.FlowCollector<T of <root>.FlowCollector>
      VALUE_PARAMETER kind:Regular name:value index:1 type:T of <root>.FlowCollector
  CLASS INTERFACE name:ProducerScope modality:ABSTRACT visibility:public superTypes:[<root>.CoroutineScope; <root>.SendChannel<E of <root>.ProducerScope>]
    thisReceiver: VALUE_PARAMETER INSTANCE_RECEIVER kind:DispatchReceiver name:<this> type:<root>.ProducerScope<E of <root>.ProducerScope>
    TYPE_PARAMETER name:E index:0 variance:in superTypes:[kotlin.Any?] reified:false
    FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN returnType:kotlin.Boolean [fake_override,operator]
      VALUE_PARAMETER kind:DispatchReceiver name:<this> index:0 type:kotlin.Any
      VALUE_PARAMETER kind:Regular name:other index:1 type:kotlin.Any?
      overridden:
        public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in <root>.CoroutineScope
        public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in <root>.SendChannel
    FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN returnType:kotlin.Int [fake_override]
      VALUE_PARAMETER kind:DispatchReceiver name:<this> index:0 type:kotlin.Any
      overridden:
        public open fun hashCode (): kotlin.Int declared in <root>.CoroutineScope
        public open fun hashCode (): kotlin.Int declared in <root>.SendChannel
    FUN FAKE_OVERRIDE name:send visibility:public modality:ABSTRACT returnType:kotlin.Unit [suspend,fake_override]
      VALUE_PARAMETER kind:DispatchReceiver name:<this> index:0 type:<root>.SendChannel<E of <root>.ProducerScope>
      VALUE_PARAMETER kind:Regular name:e index:1 type:E of <root>.ProducerScope
      overridden:
        public abstract fun send (e: E of <root>.SendChannel): kotlin.Unit declared in <root>.SendChannel
    FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN returnType:kotlin.String [fake_override]
      VALUE_PARAMETER kind:DispatchReceiver name:<this> index:0 type:kotlin.Any
      overridden:
        public open fun toString (): kotlin.String declared in <root>.CoroutineScope
        public open fun toString (): kotlin.String declared in <root>.SendChannel
    PROPERTY name:channel visibility:public modality:ABSTRACT [val]
      FUN DEFAULT_PROPERTY_ACCESSOR name:<get-channel> visibility:public modality:ABSTRACT returnType:<root>.SendChannel<E of <root>.ProducerScope>
        VALUE_PARAMETER kind:DispatchReceiver name:<this> index:0 type:<root>.ProducerScope<E of <root>.ProducerScope>
        correspondingProperty: PROPERTY name:channel visibility:public modality:ABSTRACT [val]
  CLASS INTERFACE name:ReceiveChannel modality:ABSTRACT visibility:public superTypes:[kotlin.Any]
    thisReceiver: VALUE_PARAMETER INSTANCE_RECEIVER kind:DispatchReceiver name:<this> type:<root>.ReceiveChannel<E of <root>.ReceiveChannel>
    TYPE_PARAMETER name:E index:0 variance:out superTypes:[kotlin.Any?] reified:false
    FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN returnType:kotlin.Boolean [fake_override,operator]
      VALUE_PARAMETER kind:DispatchReceiver name:<this> index:0 type:kotlin.Any
      VALUE_PARAMETER kind:Regular name:other index:1 type:kotlin.Any?
      overridden:
        public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any
    FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN returnType:kotlin.Int [fake_override]
      VALUE_PARAMETER kind:DispatchReceiver name:<this> index:0 type:kotlin.Any
      overridden:
        public open fun hashCode (): kotlin.Int declared in kotlin.Any
    FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN returnType:kotlin.String [fake_override]
      VALUE_PARAMETER kind:DispatchReceiver name:<this> index:0 type:kotlin.Any
      overridden:
        public open fun toString (): kotlin.String declared in kotlin.Any
  CLASS INTERFACE name:SendChannel modality:ABSTRACT visibility:public superTypes:[kotlin.Any]
    thisReceiver: VALUE_PARAMETER INSTANCE_RECEIVER kind:DispatchReceiver name:<this> type:<root>.SendChannel<E of <root>.SendChannel>
    TYPE_PARAMETER name:E index:0 variance:in superTypes:[kotlin.Any?] reified:false
    FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN returnType:kotlin.Boolean [fake_override,operator]
      VALUE_PARAMETER kind:DispatchReceiver name:<this> index:0 type:kotlin.Any
      VALUE_PARAMETER kind:Regular name:other index:1 type:kotlin.Any?
      overridden:
        public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any
    FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN returnType:kotlin.Int [fake_override]
      VALUE_PARAMETER kind:DispatchReceiver name:<this> index:0 type:kotlin.Any
      overridden:
        public open fun hashCode (): kotlin.Int declared in kotlin.Any
    FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN returnType:kotlin.String [fake_override]
      VALUE_PARAMETER kind:DispatchReceiver name:<this> index:0 type:kotlin.Any
      overridden:
        public open fun toString (): kotlin.String declared in kotlin.Any
    FUN name:send visibility:public modality:ABSTRACT returnType:kotlin.Unit [suspend]
      VALUE_PARAMETER kind:DispatchReceiver name:<this> index:0 type:<root>.SendChannel<E of <root>.SendChannel>
      VALUE_PARAMETER kind:Regular name:e index:1 type:E of <root>.SendChannel
  FUN name:asChannel visibility:private modality:FINAL returnType:<root>.ReceiveChannel<kotlin.Any>
    VALUE_PARAMETER kind:ExtensionReceiver name:<this> index:0 type:<root>.CoroutineScope
    VALUE_PARAMETER kind:Regular name:flow index:1 type:<root>.Flow<*>
    BLOCK_BODY
      RETURN type=kotlin.Nothing from='private final fun asChannel (<this>: <root>.CoroutineScope, flow: <root>.Flow<*>): <root>.ReceiveChannel<kotlin.Any> declared in <root>'
        CALL 'public final fun produce <E> (<this>: <root>.CoroutineScope, block: @[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1<<root>.ProducerScope<E of <root>.produce>, kotlin.Unit>): <root>.ReceiveChannel<E of <root>.produce> declared in <root>' type=<root>.ReceiveChannel<kotlin.Any> origin=null
          TYPE_ARG E: kotlin.Any
          ARG <this>: GET_VAR '<this>: <root>.CoroutineScope declared in <root>.asChannel' type=<root>.CoroutineScope origin=IMPLICIT_ARGUMENT
          ARG block: FUN_EXPR type=@[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1<<root>.ProducerScope<kotlin.Any>, kotlin.Unit> origin=LAMBDA
            FUN LOCAL_FUNCTION_FOR_LAMBDA name:<anonymous> visibility:local modality:FINAL returnType:kotlin.Unit [suspend]
              VALUE_PARAMETER kind:ExtensionReceiver name:$this$produce index:0 type:<root>.ProducerScope<kotlin.Any>
              BLOCK_BODY
                CALL 'public final fun collect <T> (<this>: <root>.Flow<T of <root>.collect>, action: kotlin.coroutines.SuspendFunction1<@[ParameterName(name = "value")] T of <root>.collect, kotlin.Unit>): kotlin.Unit declared in <root>' type=kotlin.Unit origin=null
                  TYPE_ARG T: kotlin.Any?
                  ARG <this>: GET_VAR 'flow: <root>.Flow<*> declared in <root>.asChannel' type=<root>.Flow<*> origin=null
                  ARG action: FUN_EXPR type=kotlin.coroutines.SuspendFunction1<kotlin.Any?, kotlin.Unit> origin=LAMBDA
                    FUN LOCAL_FUNCTION_FOR_LAMBDA name:<anonymous> visibility:local modality:FINAL returnType:kotlin.Unit [suspend]
                      VALUE_PARAMETER kind:Regular name:value index:0 type:kotlin.Any?
                      BLOCK_BODY
                        RETURN type=kotlin.Nothing from='local final fun <anonymous> (value: kotlin.Any?): kotlin.Unit declared in <root>.asChannel.<anonymous>'
                          CALL 'public abstract fun send (e: E of <root>.SendChannel): kotlin.Unit declared in <root>.SendChannel' type=kotlin.Unit origin=null
                            ARG <this>: CALL 'public abstract fun <get-channel> (): <root>.SendChannel<E of <root>.ProducerScope> declared in <root>.ProducerScope' type=<root>.SendChannel<kotlin.Any> origin=GET_PROPERTY
                              ARG <this>: GET_VAR '$this$produce: <root>.ProducerScope<kotlin.Any> declared in <root>.asChannel.<anonymous>' type=<root>.ProducerScope<kotlin.Any> origin=IMPLICIT_ARGUMENT
                            ARG e: BLOCK type=kotlin.Any origin=ELVIS
                              VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:kotlin.Any? [val]
                                GET_VAR 'value: kotlin.Any? declared in <root>.asChannel.<anonymous>.<anonymous>' type=kotlin.Any? origin=null
                              WHEN type=kotlin.Any origin=null
                                BRANCH
                                  if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ
                                    ARG arg0: GET_VAR 'val tmp_0: kotlin.Any? declared in <root>.asChannel.<anonymous>.<anonymous>' type=kotlin.Any? origin=null
                                    ARG arg1: CONST Null type=kotlin.Nothing? value=null
                                  then: CONSTRUCTOR_CALL 'public constructor <init> () declared in kotlin.Any' type=kotlin.Any origin=null
                                BRANCH
                                  if: CONST Boolean type=kotlin.Boolean value=true
                                  then: GET_VAR 'val tmp_0: kotlin.Any? declared in <root>.asChannel.<anonymous>.<anonymous>' type=kotlin.Any? origin=null
  FUN name:asFairChannel visibility:private modality:FINAL returnType:<root>.ReceiveChannel<kotlin.Any>
    VALUE_PARAMETER kind:ExtensionReceiver name:<this> index:0 type:<root>.CoroutineScope
    VALUE_PARAMETER kind:Regular name:flow index:1 type:<root>.Flow<*>
    BLOCK_BODY
      RETURN type=kotlin.Nothing from='private final fun asFairChannel (<this>: <root>.CoroutineScope, flow: <root>.Flow<*>): <root>.ReceiveChannel<kotlin.Any> declared in <root>'
        CALL 'public final fun produce <E> (<this>: <root>.CoroutineScope, block: @[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1<<root>.ProducerScope<E of <root>.produce>, kotlin.Unit>): <root>.ReceiveChannel<E of <root>.produce> declared in <root>' type=<root>.ReceiveChannel<kotlin.Any> origin=null
          TYPE_ARG E: kotlin.Any
          ARG <this>: GET_VAR '<this>: <root>.CoroutineScope declared in <root>.asFairChannel' type=<root>.CoroutineScope origin=IMPLICIT_ARGUMENT
          ARG block: FUN_EXPR type=@[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1<<root>.ProducerScope<kotlin.Any>, kotlin.Unit> origin=LAMBDA
            FUN LOCAL_FUNCTION_FOR_LAMBDA name:<anonymous> visibility:local modality:FINAL returnType:kotlin.Unit [suspend]
              VALUE_PARAMETER kind:ExtensionReceiver name:$this$produce index:0 type:<root>.ProducerScope<kotlin.Any>
              BLOCK_BODY
                VAR name:channel type:<root>.ChannelCoroutine<kotlin.Any> [val]
                  TYPE_OP type=<root>.ChannelCoroutine<kotlin.Any> origin=CAST typeOperand=<root>.ChannelCoroutine<kotlin.Any>
                    CALL 'public abstract fun <get-channel> (): <root>.SendChannel<E of <root>.ProducerScope> declared in <root>.ProducerScope' type=<root>.SendChannel<kotlin.Any> origin=GET_PROPERTY
                      ARG <this>: GET_VAR '$this$produce: <root>.ProducerScope<kotlin.Any> declared in <root>.asFairChannel.<anonymous>' type=<root>.ProducerScope<kotlin.Any> origin=IMPLICIT_ARGUMENT
                CALL 'public final fun collect <T> (<this>: <root>.Flow<T of <root>.collect>, action: kotlin.coroutines.SuspendFunction1<@[ParameterName(name = "value")] T of <root>.collect, kotlin.Unit>): kotlin.Unit declared in <root>' type=kotlin.Unit origin=null
                  TYPE_ARG T: kotlin.Any?
                  ARG <this>: GET_VAR 'flow: <root>.Flow<*> declared in <root>.asFairChannel' type=<root>.Flow<*> origin=null
                  ARG action: FUN_EXPR type=kotlin.coroutines.SuspendFunction1<kotlin.Any?, kotlin.Unit> origin=LAMBDA
                    FUN LOCAL_FUNCTION_FOR_LAMBDA name:<anonymous> visibility:local modality:FINAL returnType:kotlin.Unit [suspend]
                      VALUE_PARAMETER kind:Regular name:value index:0 type:kotlin.Any?
                      BLOCK_BODY
                        RETURN type=kotlin.Nothing from='local final fun <anonymous> (value: kotlin.Any?): kotlin.Unit declared in <root>.asFairChannel.<anonymous>'
                          CALL 'public final fun sendFair (element: E of <root>.ChannelCoroutine): kotlin.Unit declared in <root>.ChannelCoroutine' type=kotlin.Unit origin=null
                            ARG <this>: GET_VAR 'val channel: <root>.ChannelCoroutine<kotlin.Any> declared in <root>.asFairChannel.<anonymous>' type=<root>.ChannelCoroutine<kotlin.Any> origin=null
                            ARG element: BLOCK type=kotlin.Any origin=ELVIS
                              VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:kotlin.Any? [val]
                                GET_VAR 'value: kotlin.Any? declared in <root>.asFairChannel.<anonymous>.<anonymous>' type=kotlin.Any? origin=null
                              WHEN type=kotlin.Any origin=null
                                BRANCH
                                  if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ
                                    ARG arg0: GET_VAR 'val tmp_1: kotlin.Any? declared in <root>.asFairChannel.<anonymous>.<anonymous>' type=kotlin.Any? origin=null
                                    ARG arg1: CONST Null type=kotlin.Nothing? value=null
                                  then: CONSTRUCTOR_CALL 'public constructor <init> () declared in kotlin.Any' type=kotlin.Any origin=null
                                BRANCH
                                  if: CONST Boolean type=kotlin.Boolean value=true
                                  then: GET_VAR 'val tmp_1: kotlin.Any? declared in <root>.asFairChannel.<anonymous>.<anonymous>' type=kotlin.Any? origin=null
  FUN name:collect visibility:public modality:FINAL returnType:kotlin.Unit [inline,suspend]
    TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false
    VALUE_PARAMETER kind:ExtensionReceiver name:<this> index:0 type:<root>.Flow<T of <root>.collect>
    VALUE_PARAMETER kind:Regular name:action index:1 type:kotlin.coroutines.SuspendFunction1<@[ParameterName(name = "value")] T of <root>.collect, kotlin.Unit> [crossinline]
    BLOCK_BODY
  FUN name:flow visibility:public modality:FINAL returnType:<root>.Flow<T of <root>.flow>
    TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false
    VALUE_PARAMETER kind:Regular name:block index:0 type:@[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1<<root>.FlowCollector<T of <root>.flow>, kotlin.Unit>
    annotations:
      OptIn(markerClass = [ExperimentalTypeInference::class] type=kotlin.Array<out kotlin.reflect.KClass<out kotlin.Annotation>> varargElementType=kotlin.reflect.KClass<out kotlin.Annotation>)
    BLOCK_BODY
      RETURN type=kotlin.Nothing from='public final fun flow <T> (block: @[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1<<root>.FlowCollector<T of <root>.flow>, kotlin.Unit>): <root>.Flow<T of <root>.flow> declared in <root>'
        CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin' type=kotlin.Nothing origin=null
  FUN name:flowScope visibility:public modality:FINAL returnType:R of <root>.flowScope [suspend]
    TYPE_PARAMETER name:R index:0 variance: superTypes:[kotlin.Any?] reified:false
    VALUE_PARAMETER kind:Regular name:block index:0 type:@[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1<<root>.CoroutineScope, R of <root>.flowScope>
    annotations:
      OptIn(markerClass = [ExperimentalTypeInference::class] type=kotlin.Array<out kotlin.reflect.KClass<out kotlin.Annotation>> varargElementType=kotlin.reflect.KClass<out kotlin.Annotation>)
    BLOCK_BODY
      RETURN type=kotlin.Nothing from='public final fun flowScope <R> (block: @[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1<<root>.CoroutineScope, R of <root>.flowScope>): R of <root>.flowScope declared in <root>'
        CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin' type=kotlin.Nothing origin=null
  FUN name:invokeSafely visibility:public modality:FINAL returnType:kotlin.Unit [suspend]
    TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false
    VALUE_PARAMETER kind:ExtensionReceiver name:<this> index:0 type:<root>.FlowCollector<T of <root>.invokeSafely>
    VALUE_PARAMETER kind:Regular name:action index:1 type:@[ExtensionFunctionType] kotlin.coroutines.SuspendFunction2<<root>.FlowCollector<T of <root>.invokeSafely>, @[ParameterName(name = "cause")] kotlin.Throwable?, kotlin.Unit>
    BLOCK_BODY
  FUN name:onCompletion visibility:public modality:FINAL returnType:<root>.Flow<T of <root>.onCompletion>
    TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false
    VALUE_PARAMETER kind:ExtensionReceiver name:<this> index:0 type:<root>.Flow<T of <root>.onCompletion>
    VALUE_PARAMETER kind:Regular name:action index:1 type:@[ExtensionFunctionType] kotlin.coroutines.SuspendFunction2<<root>.FlowCollector<T of <root>.onCompletion>, @[ParameterName(name = "cause")] kotlin.Throwable?, kotlin.Unit>
    BLOCK_BODY
      RETURN type=kotlin.Nothing from='public final fun onCompletion <T> (<this>: <root>.Flow<T of <root>.onCompletion>, action: @[ExtensionFunctionType] kotlin.coroutines.SuspendFunction2<<root>.FlowCollector<T of <root>.onCompletion>, @[ParameterName(name = "cause")] kotlin.Throwable?, kotlin.Unit>): <root>.Flow<T of <root>.onCompletion> declared in <root>'
        CALL 'public final fun unsafeFlow <T> (block: @[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1<<root>.FlowCollector<T of <root>.unsafeFlow>, kotlin.Unit>): <root>.Flow<T of <root>.unsafeFlow> declared in <root>' type=<root>.Flow<T of <root>.onCompletion> origin=null
          TYPE_ARG T: T of <root>.onCompletion
          ARG block: FUN_EXPR type=@[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1<<root>.FlowCollector<T of <root>.onCompletion>, kotlin.Unit> origin=LAMBDA
            FUN LOCAL_FUNCTION_FOR_LAMBDA name:<anonymous> visibility:local modality:FINAL returnType:kotlin.Unit [suspend]
              VALUE_PARAMETER kind:ExtensionReceiver name:$this$unsafeFlow index:0 type:<root>.FlowCollector<T of <root>.onCompletion>
              BLOCK_BODY
                VAR name:safeCollector type:<root>.SafeCollector<T of <root>.onCompletion> [val]
                  CONSTRUCTOR_CALL 'public constructor <init> (collector: <root>.FlowCollector<T of <root>.SafeCollector>) declared in <root>.SafeCollector' type=<root>.SafeCollector<T of <root>.onCompletion> origin=null
                    TYPE_ARG (of class) T: T of <root>.onCompletion
                    ARG collector: GET_VAR '$this$unsafeFlow: <root>.FlowCollector<T of <root>.onCompletion> declared in <root>.onCompletion.<anonymous>' type=<root>.FlowCollector<T of <root>.onCompletion> origin=null
                CALL 'public final fun invokeSafely <T> (<this>: <root>.FlowCollector<T of <root>.invokeSafely>, action: @[ExtensionFunctionType] kotlin.coroutines.SuspendFunction2<<root>.FlowCollector<T of <root>.invokeSafely>, @[ParameterName(name = "cause")] kotlin.Throwable?, kotlin.Unit>): kotlin.Unit declared in <root>' type=kotlin.Unit origin=null
                  TYPE_ARG T: T of <root>.onCompletion
                  ARG <this>: GET_VAR 'val safeCollector: <root>.SafeCollector<T of <root>.onCompletion> declared in <root>.onCompletion.<anonymous>' type=<root>.SafeCollector<T of <root>.onCompletion> origin=null
                  ARG action: GET_VAR 'action: @[ExtensionFunctionType] kotlin.coroutines.SuspendFunction2<<root>.FlowCollector<T of <root>.onCompletion>, @[ParameterName(name = "cause")] kotlin.Throwable?, kotlin.Unit> declared in <root>.onCompletion' type=@[ExtensionFunctionType] kotlin.coroutines.SuspendFunction2<<root>.FlowCollector<T of <root>.onCompletion>, @[ParameterName(name = "cause")] kotlin.Throwable?, kotlin.Unit> origin=null
  FUN name:onCompletion visibility:public modality:FINAL returnType:<root>.Flow<T of <root>.onCompletion>
    TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false
    VALUE_PARAMETER kind:ExtensionReceiver name:<this> index:0 type:<root>.Flow<T of <root>.onCompletion>
    VALUE_PARAMETER kind:Regular name:action index:1 type:kotlin.coroutines.SuspendFunction1<@[ParameterName(name = "cause")] kotlin.Throwable?, kotlin.Unit>
    annotations:
      Deprecated(message = "binary compatibility with a version w/o FlowCollector receiver", replaceWith = <null>, level = DeprecationLevel.HIDDEN)
    BLOCK_BODY
      RETURN type=kotlin.Nothing from='public final fun onCompletion <T> (<this>: <root>.Flow<T of <root>.onCompletion>, action: kotlin.coroutines.SuspendFunction1<@[ParameterName(name = "cause")] kotlin.Throwable?, kotlin.Unit>): <root>.Flow<T of <root>.onCompletion> declared in <root>'
        CALL 'public final fun onCompletion <T> (<this>: <root>.Flow<T of <root>.onCompletion>, action: @[ExtensionFunctionType] kotlin.coroutines.SuspendFunction2<<root>.FlowCollector<T of <root>.onCompletion>, @[ParameterName(name = "cause")] kotlin.Throwable?, kotlin.Unit>): <root>.Flow<T of <root>.onCompletion> declared in <root>' type=<root>.Flow<T of <root>.onCompletion> origin=null
          TYPE_ARG T: T of <root>.onCompletion
          ARG <this>: GET_VAR '<this>: <root>.Flow<T of <root>.onCompletion> declared in <root>.onCompletion' type=<root>.Flow<T of <root>.onCompletion> origin=IMPLICIT_ARGUMENT
          ARG action: FUN_EXPR type=@[ExtensionFunctionType] kotlin.coroutines.SuspendFunction2<<root>.FlowCollector<T of <root>.onCompletion>, kotlin.Throwable?, kotlin.Unit> origin=LAMBDA
            FUN LOCAL_FUNCTION_FOR_LAMBDA name:<anonymous> visibility:local modality:FINAL returnType:kotlin.Unit [suspend]
              VALUE_PARAMETER kind:ExtensionReceiver name:$this$onCompletion index:0 type:<root>.FlowCollector<T of <root>.onCompletion>
              VALUE_PARAMETER kind:Regular name:it index:1 type:kotlin.Throwable?
              BLOCK_BODY
                CALL 'public abstract fun invoke (p1: P1 of kotlin.coroutines.SuspendFunction1): R of kotlin.coroutines.SuspendFunction1 declared in kotlin.coroutines.SuspendFunction1' type=kotlin.Unit origin=null
                  ARG <this>: GET_VAR 'action: kotlin.coroutines.SuspendFunction1<@[ParameterName(name = "cause")] kotlin.Throwable?, kotlin.Unit> declared in <root>.onCompletion' type=kotlin.coroutines.SuspendFunction1<@[ParameterName(name = "cause")] kotlin.Throwable?, kotlin.Unit> origin=VARIABLE_AS_FUNCTION
                  ARG p1: GET_VAR 'it: kotlin.Throwable? declared in <root>.onCompletion.<anonymous>' type=kotlin.Throwable? origin=null
  FUN name:produce visibility:public modality:FINAL returnType:<root>.ReceiveChannel<E of <root>.produce>
    TYPE_PARAMETER name:E index:0 variance: superTypes:[kotlin.Any?] reified:false
    VALUE_PARAMETER kind:ExtensionReceiver name:<this> index:0 type:<root>.CoroutineScope
    VALUE_PARAMETER kind:Regular name:block index:1 type:@[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1<<root>.ProducerScope<E of <root>.produce>, kotlin.Unit>
    annotations:
      OptIn(markerClass = [ExperimentalTypeInference::class] type=kotlin.Array<out kotlin.reflect.KClass<out kotlin.Annotation>> varargElementType=kotlin.reflect.KClass<out kotlin.Annotation>)
    BLOCK_BODY
      RETURN type=kotlin.Nothing from='public final fun produce <E> (<this>: <root>.CoroutineScope, block: @[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1<<root>.ProducerScope<E of <root>.produce>, kotlin.Unit>): <root>.ReceiveChannel<E of <root>.produce> declared in <root>'
        CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin' type=kotlin.Nothing origin=null
  FUN name:scopedFlow visibility:public modality:FINAL returnType:<root>.Flow<R of <root>.scopedFlow>
    TYPE_PARAMETER name:R index:0 variance: superTypes:[kotlin.Any?] reified:false
    VALUE_PARAMETER kind:Regular name:block index:0 type:@[ExtensionFunctionType] kotlin.coroutines.SuspendFunction2<<root>.CoroutineScope, <root>.FlowCollector<R of <root>.scopedFlow>, kotlin.Unit>
    annotations:
      OptIn(markerClass = [ExperimentalTypeInference::class] type=kotlin.Array<out kotlin.reflect.KClass<out kotlin.Annotation>> varargElementType=kotlin.reflect.KClass<out kotlin.Annotation>)
    BLOCK_BODY
      RETURN type=kotlin.Nothing from='public final fun scopedFlow <R> (block: @[ExtensionFunctionType] kotlin.coroutines.SuspendFunction2<<root>.CoroutineScope, <root>.FlowCollector<R of <root>.scopedFlow>, kotlin.Unit>): <root>.Flow<R of <root>.scopedFlow> declared in <root>'
        CALL 'public final fun flow <T> (block: @[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1<<root>.FlowCollector<T of <root>.flow>, kotlin.Unit>): <root>.Flow<T of <root>.flow> declared in <root>' type=<root>.Flow<R of <root>.scopedFlow> origin=null
          TYPE_ARG T: R of <root>.scopedFlow
          ARG block: FUN_EXPR type=@[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1<<root>.FlowCollector<R of <root>.scopedFlow>, kotlin.Unit> origin=LAMBDA
            FUN LOCAL_FUNCTION_FOR_LAMBDA name:<anonymous> visibility:local modality:FINAL returnType:kotlin.Unit [suspend]
              VALUE_PARAMETER kind:ExtensionReceiver name:$this$flow index:0 type:<root>.FlowCollector<R of <root>.scopedFlow>
              BLOCK_BODY
                VAR name:collector type:<root>.FlowCollector<R of <root>.scopedFlow> [val]
                  GET_VAR '$this$flow: <root>.FlowCollector<R of <root>.scopedFlow> declared in <root>.scopedFlow.<anonymous>' type=<root>.FlowCollector<R of <root>.scopedFlow> origin=null
                CALL 'public final fun flowScope <R> (block: @[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1<<root>.CoroutineScope, R of <root>.flowScope>): R of <root>.flowScope declared in <root>' type=kotlin.Unit origin=null
                  TYPE_ARG R: kotlin.Unit
                  ARG block: FUN_EXPR type=@[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1<<root>.CoroutineScope, kotlin.Unit> origin=LAMBDA
                    FUN LOCAL_FUNCTION_FOR_LAMBDA name:<anonymous> visibility:local modality:FINAL returnType:kotlin.Unit [suspend]
                      VALUE_PARAMETER kind:ExtensionReceiver name:$this$flowScope index:0 type:<root>.CoroutineScope
                      BLOCK_BODY
                        CALL 'public abstract fun invoke (p1: P1 of kotlin.coroutines.SuspendFunction2, p2: P2 of kotlin.coroutines.SuspendFunction2): R of kotlin.coroutines.SuspendFunction2 declared in kotlin.coroutines.SuspendFunction2' type=kotlin.Unit origin=null
                          ARG <this>: GET_VAR 'block: @[ExtensionFunctionType] kotlin.coroutines.SuspendFunction2<<root>.CoroutineScope, <root>.FlowCollector<R of <root>.scopedFlow>, kotlin.Unit> declared in <root>.scopedFlow' type=@[ExtensionFunctionType] kotlin.coroutines.SuspendFunction2<<root>.CoroutineScope, <root>.FlowCollector<R of <root>.scopedFlow>, kotlin.Unit> origin=VARIABLE_AS_FUNCTION
                          ARG p1: GET_VAR '$this$flowScope: <root>.CoroutineScope declared in <root>.scopedFlow.<anonymous>.<anonymous>' type=<root>.CoroutineScope origin=IMPLICIT_ARGUMENT
                          ARG p2: GET_VAR 'val collector: <root>.FlowCollector<R of <root>.scopedFlow> declared in <root>.scopedFlow.<anonymous>' type=<root>.FlowCollector<R of <root>.scopedFlow> origin=null
  FUN name:unsafeFlow visibility:public modality:FINAL returnType:<root>.Flow<T of <root>.unsafeFlow> [inline]
    TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false
    VALUE_PARAMETER kind:Regular name:block index:0 type:@[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1<<root>.FlowCollector<T of <root>.unsafeFlow>, kotlin.Unit> [crossinline]
    annotations:
      OptIn(markerClass = [ExperimentalTypeInference::class] type=kotlin.Array<out kotlin.reflect.KClass<out kotlin.Annotation>> varargElementType=kotlin.reflect.KClass<out kotlin.Annotation>)
    BLOCK_BODY
      RETURN type=kotlin.Nothing from='public final fun unsafeFlow <T> (block: @[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1<<root>.FlowCollector<T of <root>.unsafeFlow>, kotlin.Unit>): <root>.Flow<T of <root>.unsafeFlow> declared in <root>'
        CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin' type=kotlin.Nothing origin=null
