Files
kotlin-fork/compiler/testData/ir/irText/fakeOverrides/generics/basicGenericMethodsOverride.ir.txt
T
anzhela.sukhanova 82255d5ee8 [Test] KT-61360: add tests for the IrFakeOverrideBuilder
Add tests for fake overrides with focus on java interoperability

Co-authored-by: Aleksandra Arsenteva <aleksandra.arsenteva@jetbrains.com>
2024-03-04 16:21:02 +00:00

139 lines
10 KiB
Plaintext
Vendored

FILE fqName:<root> fileName:/1.kt
CLASS CLASS name:A modality:FINAL visibility:public superTypes:[<root>.Java1]
$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 <root>.Java1'
INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:A modality:FINAL visibility:public superTypes:[<root>.Java1]'
FUN FAKE_OVERRIDE name:bar visibility:public modality:OPEN <T> ($this:<root>.Java1) returnType:@[FlexibleNullability] T of <root>.A.bar? [fake_override]
overridden:
public open fun bar <T> (): @[FlexibleNullability] T of <root>.Java1.bar? declared in <root>.Java1
TYPE_PARAMETER name:T index:0 variance: superTypes:[@[FlexibleNullability] kotlin.Any?] reified:false
$this: VALUE_PARAMETER name:<this> type:<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:OPEN <T> ($this:<root>.Java1, a:@[FlexibleNullability] T of <root>.A.foo?) returnType:kotlin.Unit [fake_override]
overridden:
public open fun foo <T> (a: @[FlexibleNullability] T of <root>.Java1.foo?): kotlin.Unit declared in <root>.Java1
TYPE_PARAMETER name:T index:0 variance: superTypes:[@[FlexibleNullability] kotlin.Any?] reified:false
$this: VALUE_PARAMETER name:<this> type:<root>.Java1
VALUE_PARAMETER name:a index:0 type:@[FlexibleNullability] T of <root>.A.foo?
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: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: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 <T> ($this:<root>.B) returnType:T of <root>.B.bar?
overridden:
public open fun bar <T> (): @[FlexibleNullability] T of <root>.Java1.bar? declared in <root>.Java1
TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any] reified:false
$this: VALUE_PARAMETER name:<this> type:<root>.B
BLOCK_BODY
RETURN type=kotlin.Nothing from='public open fun bar <T> (): T of <root>.B.bar? declared in <root>.B'
CALL 'public final fun CHECK_NOT_NULL <T0> (arg0: T0 of kotlin.internal.ir.CHECK_NOT_NULL?): {T0 of kotlin.internal.ir.CHECK_NOT_NULL & Any} declared in kotlin.internal.ir' type=kotlin.Nothing origin=EXCLEXCL
<T0>: kotlin.Nothing
arg0: CONST Null type=kotlin.Nothing? value=null
FUN name:foo visibility:public modality:OPEN <T> ($this:<root>.B, a:T of <root>.B.foo?) returnType:kotlin.Unit
overridden:
public open fun foo <T> (a: @[FlexibleNullability] T of <root>.Java1.foo?): kotlin.Unit declared in <root>.Java1
TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any] reified:false
$this: VALUE_PARAMETER name:<this> type:<root>.B
VALUE_PARAMETER name:a index:0 type:T of <root>.B.foo?
BLOCK_BODY
FUN name:test visibility:public modality:FINAL <> (a:<root>.A, b:<root>.B) returnType:kotlin.Unit
VALUE_PARAMETER name:a index:0 type:<root>.A
VALUE_PARAMETER name:b index:1 type:<root>.B
BLOCK_BODY
VAR name:k type:kotlin.Int [val]
TYPE_OP type=kotlin.Int origin=IMPLICIT_NOTNULL typeOperand=kotlin.Int
CALL 'public open fun bar <T> (): @[FlexibleNullability] T of <root>.A.bar? declared in <root>.A' type=@[FlexibleNullability] kotlin.Int? origin=null
<T>: @[FlexibleNullability] kotlin.Int?
$this: GET_VAR 'a: <root>.A declared in <root>.test' type=<root>.A origin=null
VAR name:k2 type:kotlin.Int? [val]
CALL 'public open fun bar <T> (): @[FlexibleNullability] T of <root>.A.bar? declared in <root>.A' type=kotlin.Int? origin=null
<T>: kotlin.Int?
$this: GET_VAR 'a: <root>.A declared in <root>.test' type=<root>.A origin=null
VAR name:k3 type:kotlin.Any [val]
TYPE_OP type=kotlin.Any origin=IMPLICIT_NOTNULL typeOperand=kotlin.Any
CALL 'public open fun bar <T> (): @[FlexibleNullability] T of <root>.A.bar? declared in <root>.A' type=@[FlexibleNullability] kotlin.Any? origin=null
<T>: @[FlexibleNullability] kotlin.Any?
$this: GET_VAR 'a: <root>.A declared in <root>.test' type=<root>.A origin=null
VAR name:k4 type:kotlin.Nothing [val]
TYPE_OP type=kotlin.Nothing origin=IMPLICIT_NOTNULL typeOperand=kotlin.Nothing
CALL 'public open fun bar <T> (): @[FlexibleNullability] T of <root>.A.bar? declared in <root>.A' type=@[FlexibleNullability] kotlin.Nothing? origin=null
<T>: @[FlexibleNullability] kotlin.Nothing?
$this: GET_VAR 'a: <root>.A declared in <root>.test' type=<root>.A origin=null
CALL 'public open fun foo <T> (a: @[FlexibleNullability] T of <root>.A.foo?): kotlin.Unit declared in <root>.A' type=kotlin.Unit origin=null
<T>: @[FlexibleNullability] kotlin.Int?
$this: GET_VAR 'a: <root>.A declared in <root>.test' type=<root>.A origin=null
a: CONST Int type=kotlin.Int value=1
CALL 'public open fun foo <T> (a: @[FlexibleNullability] T of <root>.A.foo?): kotlin.Unit declared in <root>.A' type=kotlin.Unit origin=null
<T>: kotlin.Nothing?
$this: GET_VAR 'a: <root>.A declared in <root>.test' type=<root>.A origin=null
a: CONST Null type=kotlin.Nothing? value=null
CALL 'public open fun foo <T> (a: @[FlexibleNullability] T of <root>.A.foo?): kotlin.Unit declared in <root>.A' type=kotlin.Unit origin=null
<T>: @[FlexibleNullability] kotlin.Int?
$this: GET_VAR 'a: <root>.A declared in <root>.test' type=<root>.A origin=null
a: CONST Null type=kotlin.Nothing? value=null
CALL 'public open fun foo <T> (a: @[FlexibleNullability] T of <root>.A.foo?): kotlin.Unit declared in <root>.A' type=kotlin.Unit origin=null
<T>: @[FlexibleNullability] kotlin.collections.List<kotlin.Nothing?>?
$this: GET_VAR 'a: <root>.A declared in <root>.test' type=<root>.A origin=null
a: CALL 'public final fun listOf <T> (element: T of kotlin.collections.listOf): kotlin.collections.List<T of kotlin.collections.listOf> declared in kotlin.collections' type=kotlin.collections.List<kotlin.Nothing?> origin=null
<T>: kotlin.Nothing?
element: CONST Null type=kotlin.Nothing? value=null
VAR name:k5 type:kotlin.Int? [val]
CALL 'public open fun bar <T> (): T of <root>.B.bar? declared in <root>.B' type=kotlin.Int? origin=null
<T>: kotlin.Int
$this: GET_VAR 'b: <root>.B declared in <root>.test' type=<root>.B origin=null
VAR name:k7 type:kotlin.Any? [val]
CALL 'public open fun bar <T> (): T of <root>.B.bar? declared in <root>.B' type=kotlin.Any? origin=null
<T>: kotlin.Any
$this: GET_VAR 'b: <root>.B declared in <root>.test' type=<root>.B origin=null
VAR name:k8 type:kotlin.Nothing? [val]
CALL 'public open fun bar <T> (): T of <root>.B.bar? declared in <root>.B' type=kotlin.Nothing? origin=null
<T>: kotlin.Nothing
$this: GET_VAR 'b: <root>.B declared in <root>.test' type=<root>.B origin=null
CALL 'public open fun foo <T> (a: T of <root>.B.foo?): 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
a: CONST Int type=kotlin.Int value=1
CALL 'public open fun foo <T> (a: T of <root>.B.foo?): kotlin.Unit declared in <root>.B' type=kotlin.Unit origin=null
<T>: kotlin.Nothing
$this: GET_VAR 'b: <root>.B declared in <root>.test' type=<root>.B origin=null
a: CONST Null type=kotlin.Nothing? value=null
CALL 'public open fun foo <T> (a: T of <root>.B.foo?): 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
a: CONST Null type=kotlin.Nothing? value=null
CALL 'public open fun foo <T> (a: T of <root>.B.foo?): kotlin.Unit declared in <root>.B' type=kotlin.Unit origin=null
<T>: kotlin.collections.List<kotlin.Nothing?>
$this: GET_VAR 'b: <root>.B declared in <root>.test' type=<root>.B origin=null
a: CALL 'public final fun listOf <T> (element: T of kotlin.collections.listOf): kotlin.collections.List<T of kotlin.collections.listOf> declared in kotlin.collections' type=kotlin.collections.List<kotlin.Nothing?> origin=null
<T>: kotlin.Nothing?
element: CONST Null type=kotlin.Nothing? value=null