[TD] Union ir dumps of different test files
This commit is contained in:
committed by
TeamCityServer
parent
4752924b13
commit
77115cea92
+172
@@ -0,0 +1,172 @@
|
||||
open class Base<T : Any?> {
|
||||
constructor() /* primary */ {
|
||||
super/*Any*/()
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
fun foo(x: T) {
|
||||
}
|
||||
|
||||
fun foo(y: String) {
|
||||
}
|
||||
|
||||
val T.bar: Int
|
||||
get(): Int {
|
||||
return 1
|
||||
}
|
||||
|
||||
val String.bar: Int
|
||||
get(): Int {
|
||||
return 2
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
open class Derived : Base<String> {
|
||||
constructor() /* primary */ {
|
||||
super/*Base*/<String>()
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class Derived2 : Derived {
|
||||
constructor() /* primary */ {
|
||||
super/*Derived*/()
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
fun test(b: Base<String>, d: Derived, d2: Derived2) {
|
||||
b.foo(x = "")
|
||||
b.foo(y = "")
|
||||
d.foo(x = "")
|
||||
d.foo(y = "")
|
||||
d2.foo(x = "")
|
||||
d2.foo(y = "")
|
||||
}
|
||||
|
||||
open class BaseXY<X : Any?, Y : Any?> {
|
||||
constructor() /* primary */ {
|
||||
super/*Any*/()
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
fun foo(x: X, y: String) {
|
||||
}
|
||||
|
||||
fun foo(x: String, y: Y) {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class DerivedXY : BaseXY<String, String> {
|
||||
constructor() /* primary */ {
|
||||
super/*BaseXY*/<String, String>()
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
fun outerFun() {
|
||||
local open class LocalBase<T : Any?> {
|
||||
constructor() /* primary */ {
|
||||
super/*Any*/()
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
fun foo(x: T) {
|
||||
}
|
||||
|
||||
fun foo(y: String) {
|
||||
}
|
||||
|
||||
val T.bar: Int
|
||||
get(): Int {
|
||||
return 1
|
||||
}
|
||||
|
||||
val String.bar: Int
|
||||
get(): Int {
|
||||
return 2
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
local open class LocalDerived : LocalBase<String> {
|
||||
constructor() /* primary */ {
|
||||
super/*LocalBase*/<String>()
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
local class LocalDerived2 : LocalDerived {
|
||||
constructor() /* primary */ {
|
||||
super/*LocalDerived*/()
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
local fun test(b: LocalBase<String>, d: LocalDerived, d2: LocalDerived2) {
|
||||
b.foo(x = "")
|
||||
b.foo(y = "")
|
||||
d.foo(x = "")
|
||||
d.foo(y = "")
|
||||
d2.foo(x = "")
|
||||
d2.foo(y = "")
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
open class Outer<T : Any?> {
|
||||
constructor() /* primary */ {
|
||||
super/*Any*/()
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
open inner class Inner {
|
||||
constructor() /* primary */ {
|
||||
super/*Any*/()
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
fun foo(x: T) {
|
||||
}
|
||||
|
||||
fun foo(y: String) {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class OuterDerived : Outer<String> {
|
||||
constructor() /* primary */ {
|
||||
super/*Outer*/<String>()
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
inner class InnerDerived : Inner<String> {
|
||||
constructor() /* primary */ {
|
||||
<this>.super/*Inner*/()
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
+36
@@ -37,3 +37,39 @@ FILE fqName:test1 fileName:/kt19306_test1.kt
|
||||
overridden:
|
||||
public open fun toString (): kotlin.String declared in kotlin.Any
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||
FILE fqName:test2 fileName:/kt19306_test2.kt
|
||||
CLASS CLASS name:B modality:FINAL visibility:public superTypes:[test1.A]
|
||||
$this: VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:test2.B
|
||||
CONSTRUCTOR visibility:public <> () returnType:test2.B [primary]
|
||||
BLOCK_BODY
|
||||
DELEGATING_CONSTRUCTOR_CALL 'public constructor <init> () [primary] declared in test1.A'
|
||||
INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:B modality:FINAL visibility:public superTypes:[test1.A]'
|
||||
FUN name:test visibility:public modality:FINAL <> ($this:test2.B) returnType:kotlin.Function0<kotlin.String>
|
||||
$this: VALUE_PARAMETER name:<this> type:test2.B
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='public final fun test (): kotlin.Function0<kotlin.String> declared in test2.B'
|
||||
FUN_EXPR type=kotlin.Function0<kotlin.String> origin=LAMBDA
|
||||
FUN LOCAL_FUNCTION_FOR_LAMBDA name:<anonymous> visibility:local modality:FINAL <> () returnType:kotlin.String
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='local final fun <anonymous> (): kotlin.String declared in test2.B.test'
|
||||
CALL 'protected final fun <get-p> (): kotlin.String declared in test1.A' type=kotlin.String origin=GET_PROPERTY
|
||||
$this: GET_VAR '<this>: test2.B declared in test2.B.test' type=test2.B origin=null
|
||||
PROPERTY FAKE_OVERRIDE name:p visibility:protected modality:FINAL [fake_override,var]
|
||||
FUN FAKE_OVERRIDE name:<get-p> visibility:protected modality:FINAL <> ($this:test1.A) returnType:kotlin.String [fake_override]
|
||||
correspondingProperty: PROPERTY FAKE_OVERRIDE name:p visibility:protected modality:FINAL [fake_override,var]
|
||||
overridden:
|
||||
protected final fun <get-p> (): kotlin.String declared in test1.A
|
||||
$this: VALUE_PARAMETER name:<this> type:test1.A
|
||||
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 [operator] 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
|
||||
+36
@@ -37,3 +37,39 @@ FILE fqName:test1 fileName:/kt19306_test1.kt
|
||||
overridden:
|
||||
public open fun toString (): kotlin.String declared in kotlin.Any
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||
FILE fqName:test2 fileName:/kt19306_test2.kt
|
||||
CLASS CLASS name:B modality:FINAL visibility:public superTypes:[test1.A]
|
||||
$this: VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:test2.B
|
||||
CONSTRUCTOR visibility:public <> () returnType:test2.B [primary]
|
||||
BLOCK_BODY
|
||||
DELEGATING_CONSTRUCTOR_CALL 'public constructor <init> () [primary] declared in test1.A'
|
||||
INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:B modality:FINAL visibility:public superTypes:[test1.A]'
|
||||
FUN name:test visibility:public modality:FINAL <> ($this:test2.B) returnType:kotlin.Function0<kotlin.String>
|
||||
$this: VALUE_PARAMETER name:<this> type:test2.B
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='public final fun test (): kotlin.Function0<kotlin.String> declared in test2.B'
|
||||
FUN_EXPR type=kotlin.Function0<kotlin.String> origin=LAMBDA
|
||||
FUN LOCAL_FUNCTION_FOR_LAMBDA name:<anonymous> visibility:local modality:FINAL <> () returnType:kotlin.String
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='local final fun <anonymous> (): kotlin.String declared in test2.B.test'
|
||||
CALL 'protected final fun <get-p> (): kotlin.String [fake_override] declared in test2.B' type=kotlin.String origin=GET_PROPERTY
|
||||
$this: GET_VAR '<this>: test2.B declared in test2.B.test' type=test2.B origin=null
|
||||
PROPERTY FAKE_OVERRIDE name:p visibility:protected modality:FINAL [fake_override,var]
|
||||
FUN FAKE_OVERRIDE name:<get-p> visibility:protected modality:FINAL <> ($this:test1.A) returnType:kotlin.String [fake_override]
|
||||
correspondingProperty: PROPERTY FAKE_OVERRIDE name:p visibility:protected modality:FINAL [fake_override,var]
|
||||
overridden:
|
||||
protected final fun <get-p> (): kotlin.String declared in test1.A
|
||||
$this: VALUE_PARAMETER name:<this> type:test1.A
|
||||
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 [fake_override,operator] declared in test1.A
|
||||
$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 [fake_override] declared in test1.A
|
||||
$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 [fake_override] declared in test1.A
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||
@@ -1,36 +0,0 @@
|
||||
FILE fqName:test2 fileName:/kt19306_test2.kt
|
||||
CLASS CLASS name:B modality:FINAL visibility:public superTypes:[test1.A]
|
||||
$this: VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:test2.B
|
||||
CONSTRUCTOR visibility:public <> () returnType:test2.B [primary]
|
||||
BLOCK_BODY
|
||||
DELEGATING_CONSTRUCTOR_CALL 'public constructor <init> () [primary] declared in test1.A'
|
||||
INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:B modality:FINAL visibility:public superTypes:[test1.A]'
|
||||
FUN name:test visibility:public modality:FINAL <> ($this:test2.B) returnType:kotlin.Function0<kotlin.String>
|
||||
$this: VALUE_PARAMETER name:<this> type:test2.B
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='public final fun test (): kotlin.Function0<kotlin.String> declared in test2.B'
|
||||
FUN_EXPR type=kotlin.Function0<kotlin.String> origin=LAMBDA
|
||||
FUN LOCAL_FUNCTION_FOR_LAMBDA name:<anonymous> visibility:local modality:FINAL <> () returnType:kotlin.String
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='local final fun <anonymous> (): kotlin.String declared in test2.B.test'
|
||||
CALL 'protected final fun <get-p> (): kotlin.String declared in test1.A' type=kotlin.String origin=GET_PROPERTY
|
||||
$this: GET_VAR '<this>: test2.B declared in test2.B.test' type=test2.B origin=null
|
||||
PROPERTY FAKE_OVERRIDE name:p visibility:protected modality:FINAL [fake_override,var]
|
||||
FUN FAKE_OVERRIDE name:<get-p> visibility:protected modality:FINAL <> ($this:test1.A) returnType:kotlin.String [fake_override]
|
||||
correspondingProperty: PROPERTY FAKE_OVERRIDE name:p visibility:protected modality:FINAL [fake_override,var]
|
||||
overridden:
|
||||
protected final fun <get-p> (): kotlin.String declared in test1.A
|
||||
$this: VALUE_PARAMETER name:<this> type:test1.A
|
||||
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 [operator] 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
|
||||
@@ -1,36 +0,0 @@
|
||||
FILE fqName:test2 fileName:/kt19306_test2.kt
|
||||
CLASS CLASS name:B modality:FINAL visibility:public superTypes:[test1.A]
|
||||
$this: VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:test2.B
|
||||
CONSTRUCTOR visibility:public <> () returnType:test2.B [primary]
|
||||
BLOCK_BODY
|
||||
DELEGATING_CONSTRUCTOR_CALL 'public constructor <init> () [primary] declared in test1.A'
|
||||
INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:B modality:FINAL visibility:public superTypes:[test1.A]'
|
||||
FUN name:test visibility:public modality:FINAL <> ($this:test2.B) returnType:kotlin.Function0<kotlin.String>
|
||||
$this: VALUE_PARAMETER name:<this> type:test2.B
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='public final fun test (): kotlin.Function0<kotlin.String> declared in test2.B'
|
||||
FUN_EXPR type=kotlin.Function0<kotlin.String> origin=LAMBDA
|
||||
FUN LOCAL_FUNCTION_FOR_LAMBDA name:<anonymous> visibility:local modality:FINAL <> () returnType:kotlin.String
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='local final fun <anonymous> (): kotlin.String declared in test2.B.test'
|
||||
CALL 'protected final fun <get-p> (): kotlin.String [fake_override] declared in test2.B' type=kotlin.String origin=GET_PROPERTY
|
||||
$this: GET_VAR '<this>: test2.B declared in test2.B.test' type=test2.B origin=null
|
||||
PROPERTY FAKE_OVERRIDE name:p visibility:protected modality:FINAL [fake_override,var]
|
||||
FUN FAKE_OVERRIDE name:<get-p> visibility:protected modality:FINAL <> ($this:test1.A) returnType:kotlin.String [fake_override]
|
||||
correspondingProperty: PROPERTY FAKE_OVERRIDE name:p visibility:protected modality:FINAL [fake_override,var]
|
||||
overridden:
|
||||
protected final fun <get-p> (): kotlin.String declared in test1.A
|
||||
$this: VALUE_PARAMETER name:<this> type:test1.A
|
||||
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 [fake_override,operator] declared in test1.A
|
||||
$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 [fake_override] declared in test1.A
|
||||
$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 [fake_override] declared in test1.A
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||
Reference in New Issue
Block a user