82255d5ee8
Add tests for fake overrides with focus on java interoperability Co-authored-by: Aleksandra Arsenteva <aleksandra.arsenteva@jetbrains.com>
247 lines
19 KiB
Plaintext
Vendored
247 lines
19 KiB
Plaintext
Vendored
FILE fqName:<root> fileName:/1.kt
|
|
CLASS CLASS name:A modality:FINAL visibility:public superTypes:[<root>.Java1<kotlin.Int>]
|
|
$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'
|
|
<T>: @[FlexibleNullability] kotlin.Int?
|
|
INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:A modality:FINAL visibility:public superTypes:[<root>.Java1<kotlin.Int>]'
|
|
FUN FAKE_OVERRIDE name:bar visibility:public modality:OPEN <> ($this:<root>.Java1<kotlin.Int>) returnType:@[FlexibleNullability] kotlin.Int? [fake_override]
|
|
overridden:
|
|
public open fun bar (): @[FlexibleNullability] T of <root>.Java1? declared in <root>.Java1
|
|
$this: VALUE_PARAMETER name:<this> type:<root>.Java1<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>.Java1<kotlin.Int>, t:@[FlexibleNullability] kotlin.Int?) returnType:kotlin.Unit [fake_override]
|
|
overridden:
|
|
public open fun foo (t: @[FlexibleNullability] T of <root>.Java1?): kotlin.Unit declared in <root>.Java1
|
|
$this: VALUE_PARAMETER name:<this> type:<root>.Java1<kotlin.Int>
|
|
VALUE_PARAMETER name:t index:0 type:@[FlexibleNullability] 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
|
|
CLASS CLASS name:B modality:FINAL visibility:public superTypes:[<root>.Java1<kotlin.Int>]
|
|
$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'
|
|
<T>: @[FlexibleNullability] kotlin.Int?
|
|
INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:B modality:FINAL visibility:public superTypes:[<root>.Java1<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: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>.B) returnType:kotlin.Int
|
|
overridden:
|
|
public open fun bar (): @[FlexibleNullability] T of <root>.Java1? declared in <root>.Java1
|
|
$this: VALUE_PARAMETER name:<this> type:<root>.B
|
|
BLOCK_BODY
|
|
RETURN type=kotlin.Nothing from='public open fun bar (): kotlin.Int declared in <root>.B'
|
|
CONST Int type=kotlin.Int value=1
|
|
FUN name:foo visibility:public modality:OPEN <> ($this:<root>.B, t:kotlin.Int?) returnType:kotlin.Unit
|
|
overridden:
|
|
public open fun foo (t: @[FlexibleNullability] T of <root>.Java1?): kotlin.Unit declared in <root>.Java1
|
|
$this: VALUE_PARAMETER name:<this> type:<root>.B
|
|
VALUE_PARAMETER name:t index:0 type:kotlin.Int?
|
|
BLOCK_BODY
|
|
CLASS CLASS name:C modality:ABSTRACT visibility:public superTypes:[<root>.Java2<kotlin.Double>]
|
|
$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 kotlin.Any'
|
|
INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:ABSTRACT visibility:public superTypes:[<root>.Java2<kotlin.Double>]'
|
|
FUN FAKE_OVERRIDE name:bar visibility:public modality:ABSTRACT <> ($this:<root>.Java2<kotlin.Double>) returnType:@[FlexibleNullability] kotlin.Double? [fake_override]
|
|
overridden:
|
|
public abstract fun bar (): @[FlexibleNullability] T of <root>.Java2? declared in <root>.Java2
|
|
$this: VALUE_PARAMETER name:<this> type:<root>.Java2<kotlin.Double>
|
|
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>.Java2
|
|
$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:ABSTRACT <> ($this:<root>.Java2<kotlin.Double>, t:@[FlexibleNullability] kotlin.Double?) returnType:kotlin.Unit [fake_override]
|
|
overridden:
|
|
public abstract fun foo (t: @[FlexibleNullability] T of <root>.Java2?): kotlin.Unit declared in <root>.Java2
|
|
$this: VALUE_PARAMETER name:<this> type:<root>.Java2<kotlin.Double>
|
|
VALUE_PARAMETER name:t index:0 type:@[FlexibleNullability] kotlin.Double?
|
|
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>.Java2
|
|
$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>.Java2
|
|
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
|
CLASS CLASS name:D modality:FINAL visibility:public superTypes:[<root>.Java2<kotlin.Double>]
|
|
$this: VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.D
|
|
CONSTRUCTOR visibility:public <> () returnType:<root>.D [primary]
|
|
BLOCK_BODY
|
|
DELEGATING_CONSTRUCTOR_CALL 'public constructor <init> () declared in kotlin.Any'
|
|
INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:D modality:FINAL visibility:public superTypes:[<root>.Java2<kotlin.Double>]'
|
|
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>.Java2
|
|
$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>.Java2
|
|
$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>.Java2
|
|
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
|
FUN name:bar visibility:public modality:OPEN <> ($this:<root>.D) returnType:kotlin.Double
|
|
overridden:
|
|
public abstract fun bar (): @[FlexibleNullability] T of <root>.Java2? declared in <root>.Java2
|
|
$this: VALUE_PARAMETER name:<this> type:<root>.D
|
|
BLOCK_BODY
|
|
RETURN type=kotlin.Nothing from='public open fun bar (): kotlin.Double declared in <root>.D'
|
|
CONST Double type=kotlin.Double value=1.1
|
|
FUN name:foo visibility:public modality:OPEN <> ($this:<root>.D, t:kotlin.Double) returnType:kotlin.Unit
|
|
overridden:
|
|
public abstract fun foo (t: @[FlexibleNullability] T of <root>.Java2?): kotlin.Unit declared in <root>.Java2
|
|
$this: VALUE_PARAMETER name:<this> type:<root>.D
|
|
VALUE_PARAMETER name:t index:0 type:kotlin.Double
|
|
BLOCK_BODY
|
|
CLASS CLASS name:E modality:ABSTRACT visibility:public superTypes:[<root>.Java3]
|
|
$this: VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.E
|
|
CONSTRUCTOR visibility:public <> () returnType:<root>.E [primary]
|
|
BLOCK_BODY
|
|
DELEGATING_CONSTRUCTOR_CALL 'public constructor <init> () declared in kotlin.Any'
|
|
INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:E modality:ABSTRACT visibility:public superTypes:[<root>.Java3]'
|
|
FUN FAKE_OVERRIDE name:bar visibility:public modality:ABSTRACT <U> ($this:<root>.Java3) returnType:@[FlexibleNullability] U of <root>.E.bar? [fake_override]
|
|
overridden:
|
|
public abstract fun bar <U> (): @[FlexibleNullability] U of <root>.Java3.bar? declared in <root>.Java3
|
|
TYPE_PARAMETER name:U index:0 variance: superTypes:[@[FlexibleNullability] kotlin.Number?] reified:false
|
|
$this: VALUE_PARAMETER name:<this> type:<root>.Java3
|
|
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>.Java3
|
|
$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:ABSTRACT <U> ($this:<root>.Java3, a:@[FlexibleNullability] U of <root>.E.foo?) returnType:kotlin.Unit [fake_override]
|
|
overridden:
|
|
public abstract fun foo <U> (a: @[FlexibleNullability] U of <root>.Java3.foo?): kotlin.Unit declared in <root>.Java3
|
|
TYPE_PARAMETER name:U index:0 variance: superTypes:[@[FlexibleNullability] kotlin.Number?] reified:false
|
|
$this: VALUE_PARAMETER name:<this> type:<root>.Java3
|
|
VALUE_PARAMETER name:a index:0 type:@[FlexibleNullability] U of <root>.E.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>.Java3
|
|
$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>.Java3
|
|
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
|
CLASS CLASS name:F modality:FINAL visibility:public superTypes:[<root>.Java3]
|
|
$this: VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.F
|
|
CONSTRUCTOR visibility:public <> () returnType:<root>.F [primary]
|
|
BLOCK_BODY
|
|
DELEGATING_CONSTRUCTOR_CALL 'public constructor <init> () declared in kotlin.Any'
|
|
INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:F modality:FINAL visibility:public superTypes:[<root>.Java3]'
|
|
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>.Java3
|
|
$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>.Java3
|
|
$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>.Java3
|
|
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
|
FUN name:bar visibility:public modality:OPEN <U> ($this:<root>.F) returnType:U of <root>.F.bar
|
|
overridden:
|
|
public abstract fun bar <U> (): @[FlexibleNullability] U of <root>.Java3.bar? declared in <root>.Java3
|
|
TYPE_PARAMETER name:U index:0 variance: superTypes:[kotlin.Number] reified:false
|
|
$this: VALUE_PARAMETER name:<this> type:<root>.F
|
|
BLOCK_BODY
|
|
RETURN type=kotlin.Nothing from='public open fun bar <U> (): U of <root>.F.bar declared in <root>.F'
|
|
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 <U> ($this:<root>.F, a:U of <root>.F.foo) returnType:kotlin.Unit
|
|
overridden:
|
|
public abstract fun foo <U> (a: @[FlexibleNullability] U of <root>.Java3.foo?): kotlin.Unit declared in <root>.Java3
|
|
TYPE_PARAMETER name:U index:0 variance: superTypes:[kotlin.Number] reified:false
|
|
$this: VALUE_PARAMETER name:<this> type:<root>.F
|
|
VALUE_PARAMETER name:a index:0 type:U of <root>.F.foo
|
|
BLOCK_BODY
|
|
FUN name:test visibility:public modality:FINAL <> (a:<root>.A, b:<root>.B, c:<root>.C, d:<root>.D, e:<root>.E, f:<root>.F) returnType:kotlin.Unit
|
|
VALUE_PARAMETER name:a index:0 type:<root>.A
|
|
VALUE_PARAMETER name:b index:1 type:<root>.B
|
|
VALUE_PARAMETER name:c index:2 type:<root>.C
|
|
VALUE_PARAMETER name:d index:3 type:<root>.D
|
|
VALUE_PARAMETER name:e index:4 type:<root>.E
|
|
VALUE_PARAMETER name:f index:5 type:<root>.F
|
|
BLOCK_BODY
|
|
CALL 'public open fun foo (t: @[FlexibleNullability] kotlin.Int?): kotlin.Unit declared in <root>.A' type=kotlin.Unit origin=null
|
|
$this: GET_VAR 'a: <root>.A declared in <root>.test' type=<root>.A origin=null
|
|
t: CONST Null type=kotlin.Nothing? value=null
|
|
CALL 'public open fun foo (t: @[FlexibleNullability] kotlin.Int?): kotlin.Unit declared in <root>.A' type=kotlin.Unit origin=null
|
|
$this: GET_VAR 'a: <root>.A declared in <root>.test' type=<root>.A origin=null
|
|
t: CONST Int type=kotlin.Int value=1
|
|
TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit
|
|
CALL 'public open fun bar (): @[FlexibleNullability] kotlin.Int? declared in <root>.A' type=@[FlexibleNullability] kotlin.Int? origin=null
|
|
$this: GET_VAR 'a: <root>.A declared in <root>.test' type=<root>.A origin=null
|
|
CALL 'public open fun foo (t: kotlin.Int?): 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
|
|
t: CONST Null type=kotlin.Nothing? value=null
|
|
CALL 'public open fun foo (t: kotlin.Int?): 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
|
|
t: CONST Int type=kotlin.Int value=1
|
|
TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit
|
|
CALL 'public open fun bar (): kotlin.Int declared in <root>.B' type=kotlin.Int origin=null
|
|
$this: GET_VAR 'b: <root>.B declared in <root>.test' type=<root>.B origin=null
|
|
CALL 'public abstract fun foo (t: @[FlexibleNullability] kotlin.Double?): 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
|
|
t: CONST Null type=kotlin.Nothing? value=null
|
|
CALL 'public abstract fun foo (t: @[FlexibleNullability] kotlin.Double?): 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
|
|
t: CONST Double type=kotlin.Double value=1.1
|
|
TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit
|
|
CALL 'public abstract fun bar (): @[FlexibleNullability] kotlin.Double? declared in <root>.C' type=@[FlexibleNullability] kotlin.Double? origin=null
|
|
$this: GET_VAR 'c: <root>.C declared in <root>.test' type=<root>.C origin=null
|
|
CALL 'public open fun foo (t: kotlin.Double): kotlin.Unit declared in <root>.D' type=kotlin.Unit origin=null
|
|
$this: GET_VAR 'd: <root>.D declared in <root>.test' type=<root>.D origin=null
|
|
t: CONST Double type=kotlin.Double value=1.1
|
|
TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit
|
|
CALL 'public open fun bar (): kotlin.Double declared in <root>.D' type=kotlin.Double origin=null
|
|
$this: GET_VAR 'd: <root>.D declared in <root>.test' type=<root>.D origin=null
|
|
CALL 'public abstract fun foo <U> (a: @[FlexibleNullability] U of <root>.E.foo?): kotlin.Unit declared in <root>.E' type=kotlin.Unit origin=null
|
|
<U>: @[FlexibleNullability] kotlin.Int?
|
|
$this: GET_VAR 'e: <root>.E declared in <root>.test' type=<root>.E origin=null
|
|
a: CONST Int type=kotlin.Int value=1
|
|
TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit
|
|
CALL 'public abstract fun bar <U> (): @[FlexibleNullability] U of <root>.E.bar? declared in <root>.E' type=@[FlexibleNullability] kotlin.Int? origin=null
|
|
<U>: @[FlexibleNullability] kotlin.Int?
|
|
$this: GET_VAR 'e: <root>.E declared in <root>.test' type=<root>.E origin=null
|
|
CALL 'public open fun foo <U> (a: U of <root>.F.foo): kotlin.Unit declared in <root>.F' type=kotlin.Unit origin=null
|
|
<U>: kotlin.Double
|
|
$this: GET_VAR 'f: <root>.F declared in <root>.test' type=<root>.F origin=null
|
|
a: CONST Double type=kotlin.Double value=2.2
|
|
TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit
|
|
CALL 'public open fun bar <U> (): U of <root>.F.bar declared in <root>.F' type=kotlin.Double origin=null
|
|
<U>: kotlin.Double
|
|
$this: GET_VAR 'f: <root>.F declared in <root>.test' type=<root>.F origin=null
|