FILE fqName:<root> fileName:/thisReferenceBeforeClassDeclared.kt
  FUN name:test visibility:public modality:FINAL <> ($receiver:<root>.WithCompanion) returnType:kotlin.Unit flags:[]
    $receiver: VALUE_PARAMETER name:<this> type:<root>.WithCompanion flags:[]
    BLOCK_BODY
      VAR name:test1 type:<root>.test.<no name provided> flags:[val]
        BLOCK type=<root>.test.<no name provided> origin=OBJECT_LITERAL
          CLASS CLASS name:<no name provided> modality:FINAL visibility:local flags:[] superTypes:[<root>.WithCompanion]
            $this: VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.test.<no name provided> flags:[]
            CONSTRUCTOR visibility:public <> () returnType:<root>.test.<no name provided> flags:[primary]
              BLOCK_BODY
                DELEGATING_CONSTRUCTOR_CALL 'CONSTRUCTOR visibility:public <> (a:<root>.WithCompanion.Companion) returnType:<root>.WithCompanion flags:[primary]'
                  a: GET_OBJECT 'CLASS OBJECT name:Companion modality:FINAL visibility:public flags:[companion] superTypes:[kotlin.Any]' type=<root>.WithCompanion.Companion
                INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:<no name provided> modality:FINAL visibility:local flags:[] superTypes:[<root>.WithCompanion]'
            FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean flags:[]
              overridden:
                FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean flags:[]
              $this: VALUE_PARAMETER name:<this> type:kotlin.Any flags:[]
              VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags:[]
            FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int flags:[]
              overridden:
                FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int flags:[]
              $this: VALUE_PARAMETER name:<this> type:kotlin.Any flags:[]
            FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String flags:[]
              overridden:
                FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String flags:[]
              $this: VALUE_PARAMETER name:<this> type:kotlin.Any flags:[]
          CALL 'CONSTRUCTOR visibility:public <> () returnType:<root>.test.<no name provided> flags:[primary]' type=<root>.test.<no name provided> origin=OBJECT_LITERAL
      VAR name:test2 type:<root>.test.<no name provided> flags:[val]
        BLOCK type=<root>.test.<no name provided> origin=OBJECT_LITERAL
          CLASS CLASS name:<no name provided> modality:FINAL visibility:local flags:[] superTypes:[<root>.WithCompanion]
            $this: VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.test.<no name provided> flags:[]
            CONSTRUCTOR visibility:public <> () returnType:<root>.test.<no name provided> flags:[primary]
              BLOCK_BODY
                DELEGATING_CONSTRUCTOR_CALL 'CONSTRUCTOR visibility:public <> (a:<root>.WithCompanion.Companion) returnType:<root>.WithCompanion flags:[primary]'
                  a: CALL 'FUN name:foo visibility:public modality:FINAL <> ($this:<root>.WithCompanion.Companion) returnType:<root>.WithCompanion.Companion flags:[]' type=<root>.WithCompanion.Companion origin=null
                    $this: GET_OBJECT 'CLASS OBJECT name:Companion modality:FINAL visibility:public flags:[companion] superTypes:[kotlin.Any]' type=<root>.WithCompanion.Companion
                INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:<no name provided> modality:FINAL visibility:local flags:[] superTypes:[<root>.WithCompanion]'
            FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean flags:[]
              overridden:
                FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean flags:[]
              $this: VALUE_PARAMETER name:<this> type:kotlin.Any flags:[]
              VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags:[]
            FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int flags:[]
              overridden:
                FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int flags:[]
              $this: VALUE_PARAMETER name:<this> type:kotlin.Any flags:[]
            FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String flags:[]
              overridden:
                FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String flags:[]
              $this: VALUE_PARAMETER name:<this> type:kotlin.Any flags:[]
          CALL 'CONSTRUCTOR visibility:public <> () returnType:<root>.test.<no name provided> flags:[primary]' type=<root>.test.<no name provided> origin=OBJECT_LITERAL
  CLASS CLASS name:WithCompanion modality:OPEN visibility:public flags:[] superTypes:[kotlin.Any]
    $this: VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.WithCompanion flags:[]
    CONSTRUCTOR visibility:public <> (a:<root>.WithCompanion.Companion) returnType:<root>.WithCompanion flags:[primary]
      VALUE_PARAMETER name:a index:0 type:<root>.WithCompanion.Companion flags:[]
      BLOCK_BODY
        DELEGATING_CONSTRUCTOR_CALL 'CONSTRUCTOR IR_EXTERNAL_DECLARATION_STUB visibility:public <> () returnType:kotlin.Any flags:[primary]'
        INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:WithCompanion modality:OPEN visibility:public flags:[] superTypes:[kotlin.Any]'
    CLASS OBJECT name:Companion modality:FINAL visibility:public flags:[companion] superTypes:[kotlin.Any]
      $this: VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.WithCompanion.Companion flags:[]
      CONSTRUCTOR visibility:private <> () returnType:<root>.WithCompanion.Companion flags:[primary]
        BLOCK_BODY
          DELEGATING_CONSTRUCTOR_CALL 'CONSTRUCTOR IR_EXTERNAL_DECLARATION_STUB visibility:public <> () returnType:kotlin.Any flags:[primary]'
          INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:Companion modality:FINAL visibility:public flags:[companion] superTypes:[kotlin.Any]'
      FUN name:foo visibility:public modality:FINAL <> ($this:<root>.WithCompanion.Companion) returnType:<root>.WithCompanion.Companion flags:[]
        $this: VALUE_PARAMETER name:<this> type:<root>.WithCompanion.Companion flags:[]
        BLOCK_BODY
          RETURN type=kotlin.Nothing from='FUN name:foo visibility:public modality:FINAL <> ($this:<root>.WithCompanion.Companion) returnType:<root>.WithCompanion.Companion flags:[]'
            GET_VAR 'VALUE_PARAMETER name:<this> type:<root>.WithCompanion.Companion flags:[]' type=<root>.WithCompanion.Companion origin=null
      FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean flags:[]
        overridden:
          FUN IR_EXTERNAL_DECLARATION_STUB name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean flags:[]
        $this: VALUE_PARAMETER name:<this> type:kotlin.Any flags:[]
        VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags:[]
      FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int flags:[]
        overridden:
          FUN IR_EXTERNAL_DECLARATION_STUB name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int flags:[]
        $this: VALUE_PARAMETER name:<this> type:kotlin.Any flags:[]
      FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String flags:[]
        overridden:
          FUN IR_EXTERNAL_DECLARATION_STUB name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String flags:[]
        $this: VALUE_PARAMETER name:<this> type:kotlin.Any flags:[]
    FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean flags:[]
      overridden:
        FUN IR_EXTERNAL_DECLARATION_STUB name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean flags:[]
      $this: VALUE_PARAMETER name:<this> type:kotlin.Any flags:[]
      VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags:[]
    FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int flags:[]
      overridden:
        FUN IR_EXTERNAL_DECLARATION_STUB name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int flags:[]
      $this: VALUE_PARAMETER name:<this> type:kotlin.Any flags:[]
    FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String flags:[]
      overridden:
        FUN IR_EXTERNAL_DECLARATION_STUB name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String flags:[]
      $this: VALUE_PARAMETER name:<this> type:kotlin.Any flags:[]
