82255d5ee8
Add tests for fake overrides with focus on java interoperability Co-authored-by: Aleksandra Arsenteva <aleksandra.arsenteva@jetbrains.com>
233 lines
16 KiB
Plaintext
Vendored
233 lines
16 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:bar visibility:public modality:OPEN <> ($this:<root>.A, $receiver:<root>.Java2, a:kotlin.Int) returnType:kotlin.Unit
|
|
$this: VALUE_PARAMETER name:<this> type:<root>.A
|
|
$receiver: VALUE_PARAMETER name:<this> type:<root>.Java2
|
|
VALUE_PARAMETER name:a index:0 type:kotlin.Int
|
|
BLOCK_BODY
|
|
FUN name:foo visibility:public modality:OPEN <> ($this:<root>.A, $receiver:<root>.A, a:kotlin.Int) returnType:kotlin.Unit
|
|
$this: VALUE_PARAMETER name:<this> type:<root>.A
|
|
$receiver: VALUE_PARAMETER name:<this> type:<root>.A
|
|
VALUE_PARAMETER name:a index:0 type:kotlin.Int
|
|
BLOCK_BODY
|
|
PROPERTY name:a visibility:public modality:OPEN [var]
|
|
FUN name:<get-a> visibility:public modality:OPEN <> ($this:<root>.A, $receiver:<root>.A) returnType:kotlin.Int
|
|
correspondingProperty: PROPERTY name:a visibility:public modality:OPEN [var]
|
|
$this: VALUE_PARAMETER name:<this> type:<root>.A
|
|
$receiver: VALUE_PARAMETER name:<this> type:<root>.A
|
|
BLOCK_BODY
|
|
RETURN type=kotlin.Nothing from='public open fun <get-a> (): kotlin.Int declared in <root>.A'
|
|
CONST Int type=kotlin.Int value=1
|
|
FUN name:<set-a> visibility:public modality:OPEN <> ($this:<root>.A, $receiver:<root>.A, value:kotlin.Int) returnType:kotlin.Unit
|
|
correspondingProperty: PROPERTY name:a visibility:public modality:OPEN [var]
|
|
$this: VALUE_PARAMETER name:<this> type:<root>.A
|
|
$receiver: VALUE_PARAMETER name:<this> type:<root>.A
|
|
VALUE_PARAMETER name:value index:0 type:kotlin.Int
|
|
BLOCK_BODY
|
|
PROPERTY name:b visibility:public modality:OPEN [var]
|
|
FUN name:<get-b> visibility:public modality:OPEN <> ($this:<root>.A, $receiver:<root>.Java2) returnType:kotlin.String
|
|
correspondingProperty: PROPERTY name:b visibility:public modality:OPEN [var]
|
|
$this: VALUE_PARAMETER name:<this> type:<root>.A
|
|
$receiver: VALUE_PARAMETER name:<this> type:<root>.Java2
|
|
BLOCK_BODY
|
|
RETURN type=kotlin.Nothing from='public open fun <get-b> (): kotlin.String declared in <root>.A'
|
|
CONST String type=kotlin.String value="java2"
|
|
FUN name:<set-b> visibility:public modality:OPEN <> ($this:<root>.A, $receiver:<root>.Java2, value:kotlin.String) returnType:kotlin.Unit
|
|
correspondingProperty: PROPERTY name:b visibility:public modality:OPEN [var]
|
|
$this: VALUE_PARAMETER name:<this> type:<root>.A
|
|
$receiver: VALUE_PARAMETER name:<this> type:<root>.Java2
|
|
VALUE_PARAMETER name:value index:0 type:kotlin.String
|
|
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:bar visibility:public modality:OPEN <> ($this:<root>.A, $receiver:<root>.Java2, a:kotlin.Int) returnType:kotlin.Unit [fake_override]
|
|
overridden:
|
|
public open fun bar (a: kotlin.Int): kotlin.Unit declared in <root>.Java1
|
|
$this: VALUE_PARAMETER name:<this> type:<root>.A
|
|
$receiver: VALUE_PARAMETER name:<this> type:<root>.Java2
|
|
VALUE_PARAMETER name:a index:0 type:kotlin.Int
|
|
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:OPEN <> ($this:<root>.A, $receiver:<root>.A, a:kotlin.Int) returnType:kotlin.Unit [fake_override]
|
|
overridden:
|
|
public open fun foo (a: kotlin.Int): kotlin.Unit declared in <root>.Java1
|
|
$this: VALUE_PARAMETER name:<this> type:<root>.A
|
|
$receiver: VALUE_PARAMETER name:<this> type:<root>.A
|
|
VALUE_PARAMETER name:a index:0 type:kotlin.Int
|
|
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:test visibility:public modality:FINAL <> ($this:<root>.B) returnType:kotlin.Unit
|
|
$this: VALUE_PARAMETER name:<this> type:<root>.B
|
|
BLOCK_BODY
|
|
TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit
|
|
CALL 'public open fun <get-a> (): kotlin.Int declared in <root>.B' type=kotlin.Int origin=GET_PROPERTY
|
|
$this: GET_VAR '<this>: <root>.B declared in <root>.B.test' type=<root>.B origin=null
|
|
$receiver: CONSTRUCTOR_CALL 'public constructor <init> () declared in <root>.A' type=<root>.A origin=null
|
|
TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit
|
|
CALL 'public open fun <get-b> (): kotlin.String declared in <root>.B' type=kotlin.String origin=GET_PROPERTY
|
|
$this: GET_VAR '<this>: <root>.B declared in <root>.B.test' type=<root>.B origin=null
|
|
$receiver: CONSTRUCTOR_CALL 'public constructor <init> () declared in <root>.Java2' type=<root>.Java2 origin=null
|
|
CALL 'public open fun foo (a: kotlin.Int): kotlin.Unit declared in <root>.B' type=kotlin.Unit origin=null
|
|
$this: GET_VAR '<this>: <root>.B declared in <root>.B.test' type=<root>.B origin=null
|
|
$receiver: CONSTRUCTOR_CALL 'public constructor <init> () declared in <root>.A' type=<root>.A origin=null
|
|
a: CONST Int type=kotlin.Int value=1
|
|
CALL 'public open fun bar (a: kotlin.Int): kotlin.Unit declared in <root>.B' type=kotlin.Unit origin=null
|
|
$this: GET_VAR '<this>: <root>.B declared in <root>.B.test' type=<root>.B origin=null
|
|
$receiver: CONSTRUCTOR_CALL 'public constructor <init> () declared in <root>.Java2' type=<root>.Java2 origin=null
|
|
a: CONST Int type=kotlin.Int value=1
|
|
PROPERTY FAKE_OVERRIDE name:a visibility:public modality:OPEN [fake_override,var]
|
|
overridden:
|
|
public open a: kotlin.Int
|
|
FUN FAKE_OVERRIDE name:<get-a> visibility:public modality:OPEN <> ($this:<root>.A, $receiver:<root>.A) returnType:kotlin.Int [fake_override]
|
|
correspondingProperty: PROPERTY FAKE_OVERRIDE name:a visibility:public modality:OPEN [fake_override,var]
|
|
overridden:
|
|
public open fun <get-a> (): kotlin.Int declared in <root>.Java1
|
|
$this: VALUE_PARAMETER name:<this> type:<root>.A
|
|
$receiver: VALUE_PARAMETER name:<this> type:<root>.A
|
|
FUN FAKE_OVERRIDE name:<set-a> visibility:public modality:OPEN <> ($this:<root>.A, $receiver:<root>.A, value:kotlin.Int) returnType:kotlin.Unit [fake_override]
|
|
correspondingProperty: PROPERTY FAKE_OVERRIDE name:a visibility:public modality:OPEN [fake_override,var]
|
|
overridden:
|
|
public open fun <set-a> (value: kotlin.Int): kotlin.Unit declared in <root>.Java1
|
|
$this: VALUE_PARAMETER name:<this> type:<root>.A
|
|
$receiver: VALUE_PARAMETER name:<this> type:<root>.A
|
|
VALUE_PARAMETER name:value index:0 type:kotlin.Int
|
|
PROPERTY FAKE_OVERRIDE name:b visibility:public modality:OPEN [fake_override,var]
|
|
overridden:
|
|
public open b: kotlin.String
|
|
FUN FAKE_OVERRIDE name:<get-b> visibility:public modality:OPEN <> ($this:<root>.A, $receiver:<root>.Java2) returnType:kotlin.String [fake_override]
|
|
correspondingProperty: PROPERTY FAKE_OVERRIDE name:b visibility:public modality:OPEN [fake_override,var]
|
|
overridden:
|
|
public open fun <get-b> (): kotlin.String declared in <root>.Java1
|
|
$this: VALUE_PARAMETER name:<this> type:<root>.A
|
|
$receiver: VALUE_PARAMETER name:<this> type:<root>.Java2
|
|
FUN FAKE_OVERRIDE name:<set-b> visibility:public modality:OPEN <> ($this:<root>.A, $receiver:<root>.Java2, value:kotlin.String) returnType:kotlin.Unit [fake_override]
|
|
correspondingProperty: PROPERTY FAKE_OVERRIDE name:b visibility:public modality:OPEN [fake_override,var]
|
|
overridden:
|
|
public open fun <set-b> (value: kotlin.String): kotlin.Unit declared in <root>.Java1
|
|
$this: VALUE_PARAMETER name:<this> type:<root>.A
|
|
$receiver: VALUE_PARAMETER name:<this> type:<root>.Java2
|
|
VALUE_PARAMETER name:value index:0 type:kotlin.String
|
|
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: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:bar visibility:public modality:OPEN <> ($this:<root>.C, $receiver:<root>.Java2, a:kotlin.Int) returnType:kotlin.Unit
|
|
overridden:
|
|
public open fun bar (a: kotlin.Int): kotlin.Unit declared in <root>.Java1
|
|
$this: VALUE_PARAMETER name:<this> type:<root>.C
|
|
$receiver: VALUE_PARAMETER name:<this> type:<root>.Java2
|
|
VALUE_PARAMETER name:a index:0 type:kotlin.Int
|
|
BLOCK_BODY
|
|
FUN name:foo visibility:public modality:OPEN <> ($this:<root>.C, $receiver:<root>.A, a:kotlin.Int) returnType:kotlin.Unit
|
|
overridden:
|
|
public open fun foo (a: kotlin.Int): kotlin.Unit declared in <root>.Java1
|
|
$this: VALUE_PARAMETER name:<this> type:<root>.C
|
|
$receiver: VALUE_PARAMETER name:<this> type:<root>.A
|
|
VALUE_PARAMETER name:a index:0 type:kotlin.Int
|
|
BLOCK_BODY
|
|
FUN name:test visibility:public modality:FINAL <> ($this:<root>.C) returnType:kotlin.Unit
|
|
$this: VALUE_PARAMETER name:<this> type:<root>.C
|
|
BLOCK_BODY
|
|
TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit
|
|
CALL 'public open fun <get-a> (): kotlin.Int declared in <root>.C' type=kotlin.Int origin=GET_PROPERTY
|
|
$this: GET_VAR '<this>: <root>.C declared in <root>.C.test' type=<root>.C origin=null
|
|
$receiver: CONSTRUCTOR_CALL 'public constructor <init> () declared in <root>.A' type=<root>.A origin=null
|
|
TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit
|
|
CALL 'public open fun <get-b> (): kotlin.String declared in <root>.C' type=kotlin.String origin=GET_PROPERTY
|
|
$this: GET_VAR '<this>: <root>.C declared in <root>.C.test' type=<root>.C origin=null
|
|
$receiver: CONSTRUCTOR_CALL 'public constructor <init> () declared in <root>.Java2' type=<root>.Java2 origin=null
|
|
CALL 'public open fun foo (a: kotlin.Int): kotlin.Unit declared in <root>.C' type=kotlin.Unit origin=null
|
|
$this: GET_VAR '<this>: <root>.C declared in <root>.C.test' type=<root>.C origin=null
|
|
$receiver: CONSTRUCTOR_CALL 'public constructor <init> () declared in <root>.A' type=<root>.A origin=null
|
|
a: CONST Int type=kotlin.Int value=1
|
|
CALL 'public open fun bar (a: kotlin.Int): kotlin.Unit declared in <root>.C' type=kotlin.Unit origin=null
|
|
$this: GET_VAR '<this>: <root>.C declared in <root>.C.test' type=<root>.C origin=null
|
|
$receiver: CONSTRUCTOR_CALL 'public constructor <init> () declared in <root>.Java2' type=<root>.Java2 origin=null
|
|
a: CONST Int type=kotlin.Int value=1
|
|
PROPERTY name:a visibility:public modality:OPEN [var]
|
|
overridden:
|
|
public open a: kotlin.Int
|
|
FUN name:<get-a> visibility:public modality:OPEN <> ($this:<root>.C, $receiver:<root>.A) returnType:kotlin.Int
|
|
correspondingProperty: PROPERTY name:a visibility:public modality:OPEN [var]
|
|
overridden:
|
|
public open fun <get-a> (): kotlin.Int declared in <root>.Java1
|
|
$this: VALUE_PARAMETER name:<this> type:<root>.C
|
|
$receiver: VALUE_PARAMETER name:<this> type:<root>.A
|
|
BLOCK_BODY
|
|
RETURN type=kotlin.Nothing from='public open fun <get-a> (): kotlin.Int declared in <root>.C'
|
|
CONST Int type=kotlin.Int value=2
|
|
FUN name:<set-a> visibility:public modality:OPEN <> ($this:<root>.C, $receiver:<root>.A, value:kotlin.Int) returnType:kotlin.Unit
|
|
correspondingProperty: PROPERTY name:a visibility:public modality:OPEN [var]
|
|
overridden:
|
|
public open fun <set-a> (value: kotlin.Int): kotlin.Unit declared in <root>.Java1
|
|
$this: VALUE_PARAMETER name:<this> type:<root>.C
|
|
$receiver: VALUE_PARAMETER name:<this> type:<root>.A
|
|
VALUE_PARAMETER name:value index:0 type:kotlin.Int
|
|
BLOCK_BODY
|
|
PROPERTY name:b visibility:public modality:OPEN [var]
|
|
overridden:
|
|
public open b: kotlin.String
|
|
FUN name:<get-b> visibility:public modality:OPEN <> ($this:<root>.C, $receiver:<root>.Java2) returnType:kotlin.String
|
|
correspondingProperty: PROPERTY name:b visibility:public modality:OPEN [var]
|
|
overridden:
|
|
public open fun <get-b> (): kotlin.String declared in <root>.Java1
|
|
$this: VALUE_PARAMETER name:<this> type:<root>.C
|
|
$receiver: VALUE_PARAMETER name:<this> type:<root>.Java2
|
|
BLOCK_BODY
|
|
RETURN type=kotlin.Nothing from='public open fun <get-b> (): kotlin.String declared in <root>.C'
|
|
CONST String type=kotlin.String value="C.java2"
|
|
FUN name:<set-b> visibility:public modality:OPEN <> ($this:<root>.C, $receiver:<root>.Java2, value:kotlin.String) returnType:kotlin.Unit
|
|
correspondingProperty: PROPERTY name:b visibility:public modality:OPEN [var]
|
|
overridden:
|
|
public open fun <set-b> (value: kotlin.String): kotlin.Unit declared in <root>.Java1
|
|
$this: VALUE_PARAMETER name:<this> type:<root>.C
|
|
$receiver: VALUE_PARAMETER name:<this> type:<root>.Java2
|
|
VALUE_PARAMETER name:value index:0 type:kotlin.String
|
|
BLOCK_BODY
|