82255d5ee8
Add tests for fake overrides with focus on java interoperability Co-authored-by: Aleksandra Arsenteva <aleksandra.arsenteva@jetbrains.com>
134 lines
9.3 KiB
Plaintext
Vendored
134 lines
9.3 KiB
Plaintext
Vendored
FILE fqName:<root> fileName:/1.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> () declared in kotlin.Any'
|
|
INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:A modality:OPEN visibility:public superTypes:[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 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
|
|
FUN name:foo visibility:public modality:FINAL <> ($this:<root>.A) returnType:kotlin.Unit [inline]
|
|
$this: VALUE_PARAMETER name:<this> type:<root>.A
|
|
BLOCK_BODY
|
|
FUN name:foo2 visibility:public modality:OPEN <> ($this:<root>.A) returnType:kotlin.Unit [external]
|
|
$this: VALUE_PARAMETER name:<this> type:<root>.A
|
|
FUN name:foo3 visibility:public modality:OPEN <> ($this:<root>.A) returnType:kotlin.Unit [suspend]
|
|
$this: VALUE_PARAMETER name:<this> type:<root>.A
|
|
BLOCK_BODY
|
|
FUN name:foo4 visibility:public modality:FINAL <T> ($this:<root>.A, t:T of <root>.A.foo4) returnType:kotlin.Unit [inline]
|
|
TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:true
|
|
$this: VALUE_PARAMETER name:<this> type:<root>.A
|
|
VALUE_PARAMETER name:t index:0 type:T of <root>.A.foo4
|
|
BLOCK_BODY
|
|
CLASS CLASS name:B modality:FINAL visibility:public superTypes:[<root>.Java1]
|
|
$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> () declared in <root>.Java1'
|
|
INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:B modality:FINAL visibility:public superTypes:[<root>.Java1]'
|
|
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 declared in <root>.Java1
|
|
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
|
VALUE_PARAMETER name:other index:0 type:kotlin.Any?
|
|
FUN FAKE_OVERRIDE name:foo visibility:public modality:FINAL <> ($this:<root>.A) returnType:kotlin.Unit [inline,fake_override]
|
|
overridden:
|
|
public final fun foo (): kotlin.Unit declared in <root>.Java1
|
|
$this: VALUE_PARAMETER name:<this> type:<root>.A
|
|
FUN FAKE_OVERRIDE name:foo2 visibility:public modality:OPEN <> ($this:<root>.A) returnType:kotlin.Unit [fake_override]
|
|
overridden:
|
|
public open fun foo2 (): kotlin.Unit declared in <root>.Java1
|
|
$this: VALUE_PARAMETER name:<this> type:<root>.A
|
|
FUN FAKE_OVERRIDE name:foo3 visibility:public modality:OPEN <> ($this:<root>.A) returnType:kotlin.Unit [suspend,fake_override]
|
|
overridden:
|
|
public open fun foo3 (): kotlin.Unit declared in <root>.Java1
|
|
$this: VALUE_PARAMETER name:<this> type:<root>.A
|
|
FUN FAKE_OVERRIDE name:foo4 visibility:public modality:FINAL <T> ($this:<root>.A, t:T of <root>.B.foo4) returnType:kotlin.Unit [inline,fake_override]
|
|
overridden:
|
|
public final fun foo4 <T> (t: T of <root>.Java1.foo4): kotlin.Unit declared in <root>.Java1
|
|
TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:true
|
|
$this: VALUE_PARAMETER name:<this> type:<root>.A
|
|
VALUE_PARAMETER name:t index:0 type:T of <root>.B.foo4
|
|
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 <root>.Java1
|
|
$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 <root>.Java1
|
|
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
|
CLASS CLASS name:C modality:FINAL visibility:public superTypes:[<root>.Java1]
|
|
$this: VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.C
|
|
CONSTRUCTOR visibility:public <> () returnType:<root>.C [primary]
|
|
BLOCK_BODY
|
|
DELEGATING_CONSTRUCTOR_CALL 'public constructor <init> () declared in <root>.Java1'
|
|
INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:FINAL visibility:public superTypes:[<root>.Java1]'
|
|
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 declared in <root>.Java1
|
|
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
|
VALUE_PARAMETER name:other index:0 type:kotlin.Any?
|
|
FUN FAKE_OVERRIDE name:foo visibility:public modality:FINAL <> ($this:<root>.A) returnType:kotlin.Unit [inline,fake_override]
|
|
overridden:
|
|
public final fun foo (): kotlin.Unit declared in <root>.Java1
|
|
$this: VALUE_PARAMETER name:<this> type:<root>.A
|
|
FUN FAKE_OVERRIDE name:foo4 visibility:public modality:FINAL <T> ($this:<root>.A, t:T of <root>.C.foo4) returnType:kotlin.Unit [inline,fake_override]
|
|
overridden:
|
|
public final fun foo4 <T> (t: T of <root>.Java1.foo4): kotlin.Unit declared in <root>.Java1
|
|
TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:true
|
|
$this: VALUE_PARAMETER name:<this> type:<root>.A
|
|
VALUE_PARAMETER name:t index:0 type:T of <root>.C.foo4
|
|
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 <root>.Java1
|
|
$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 <root>.Java1
|
|
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
|
FUN name:foo2 visibility:public modality:OPEN <> ($this:<root>.C) returnType:kotlin.Unit
|
|
overridden:
|
|
public open fun foo2 (): kotlin.Unit declared in <root>.Java1
|
|
$this: VALUE_PARAMETER name:<this> type:<root>.C
|
|
BLOCK_BODY
|
|
FUN name:foo3 visibility:public modality:OPEN <> ($this:<root>.C) returnType:kotlin.Unit [suspend]
|
|
overridden:
|
|
public open fun foo3 (): kotlin.Unit declared in <root>.Java1
|
|
$this: VALUE_PARAMETER name:<this> type:<root>.C
|
|
BLOCK_BODY
|
|
FUN name:test visibility:public modality:FINAL <> (b:<root>.B, c:<root>.C) returnType:kotlin.Unit [suspend]
|
|
VALUE_PARAMETER name:b index:0 type:<root>.B
|
|
VALUE_PARAMETER name:c index:1 type:<root>.C
|
|
BLOCK_BODY
|
|
CALL 'public final fun foo (): kotlin.Unit declared in <root>.B' type=kotlin.Unit origin=null
|
|
$this: GET_VAR 'b: <root>.B declared in <root>.test' type=<root>.B origin=null
|
|
CALL 'public open fun foo2 (): kotlin.Unit declared in <root>.B' type=kotlin.Unit origin=null
|
|
$this: GET_VAR 'b: <root>.B declared in <root>.test' type=<root>.B origin=null
|
|
CALL 'public open fun foo3 (): kotlin.Unit declared in <root>.B' type=kotlin.Unit origin=null
|
|
$this: GET_VAR 'b: <root>.B declared in <root>.test' type=<root>.B origin=null
|
|
CALL 'public final fun foo4 <T> (t: T of <root>.B.foo4): kotlin.Unit declared in <root>.B' type=kotlin.Unit origin=null
|
|
<T>: kotlin.Int
|
|
$this: GET_VAR 'b: <root>.B declared in <root>.test' type=<root>.B origin=null
|
|
t: CONST Int type=kotlin.Int value=1
|
|
CALL 'public final fun foo (): kotlin.Unit declared in <root>.C' type=kotlin.Unit origin=null
|
|
$this: GET_VAR 'c: <root>.C declared in <root>.test' type=<root>.C origin=null
|
|
CALL 'public open fun foo2 (): kotlin.Unit declared in <root>.C' type=kotlin.Unit origin=null
|
|
$this: GET_VAR 'c: <root>.C declared in <root>.test' type=<root>.C origin=null
|
|
CALL 'public open fun foo3 (): kotlin.Unit declared in <root>.C' type=kotlin.Unit origin=null
|
|
$this: GET_VAR 'c: <root>.C declared in <root>.test' type=<root>.C origin=null
|
|
CALL 'public final fun foo4 <T> (t: T of <root>.C.foo4): kotlin.Unit declared in <root>.C' type=kotlin.Unit origin=null
|
|
<T>: kotlin.String
|
|
$this: GET_VAR 'c: <root>.C declared in <root>.test' type=<root>.C origin=null
|
|
t: CONST String type=kotlin.String value=""
|