[Test] Add handler for comparing pretty kt ir dumps
This commit is contained in:
committed by
TeamCityServer
parent
87ffbd8206
commit
aba029237d
+10
@@ -1,3 +1,13 @@
|
||||
// FILE: signedToUnsignedConversions_annotation.kt
|
||||
package kotlin.internal
|
||||
|
||||
annotation class ImplicitIntegerCoercion : Annotation {
|
||||
constructor() /* primary */
|
||||
|
||||
}
|
||||
|
||||
// FILE: signedToUnsignedConversions_test.kt
|
||||
|
||||
@ImplicitIntegerCoercion
|
||||
const val IMPLICIT_INT: Int
|
||||
field = 255
|
||||
-7
@@ -1,7 +0,0 @@
|
||||
package kotlin.internal
|
||||
|
||||
annotation class ImplicitIntegerCoercion : Annotation {
|
||||
constructor() /* primary */
|
||||
|
||||
}
|
||||
|
||||
@@ -1,3 +1,22 @@
|
||||
// MODULE: m1
|
||||
// FILE: BaseFirBuilder.kt
|
||||
|
||||
abstract class BaseFirBuilder<T : Any?> {
|
||||
constructor() /* primary */ {
|
||||
super/*Any*/()
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
inline fun <T : Any?> withCapturedTypeParameters(block: Function0<T>): T {
|
||||
return block.invoke()
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// MODULE: m2
|
||||
// FILE: FirBuilder.kt
|
||||
|
||||
open class BaseConverter : BaseFirBuilder<Any> {
|
||||
constructor() /* primary */ {
|
||||
super/*BaseFirBuilder*/<Any>()
|
||||
|
||||
@@ -55,11 +55,12 @@ data class A {
|
||||
}
|
||||
|
||||
var fn: Function1<A, Int>
|
||||
field = local fun <anonymous>(<name for destructuring parameter 0>: A): Int {
|
||||
val y: Int = <name for destructuring parameter 0>.component2()
|
||||
field = local fun <anonymous>($dstr$_u24__u24$y: A): Int {
|
||||
val y: Int = $dstr$_u24__u24$y.component2()
|
||||
return 42.plus(other = y)
|
||||
}
|
||||
|
||||
get
|
||||
set
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,53 @@
|
||||
// MODULE: m1
|
||||
// FILE: genericClassInDifferentModule_m1.kt
|
||||
|
||||
abstract class Base<T : Any?> {
|
||||
constructor(x: T) /* primary */ {
|
||||
super/*Any*/()
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
val x: T
|
||||
field = x
|
||||
get
|
||||
|
||||
abstract fun <Y : Any?> foo(y: Y): T
|
||||
abstract var bar: T
|
||||
abstract get
|
||||
abstract set
|
||||
|
||||
abstract var <Z : Any?> Z.exn: T
|
||||
abstract get
|
||||
abstract set
|
||||
|
||||
}
|
||||
|
||||
// MODULE: m2
|
||||
// FILE: genericClassInDifferentModule_m2.kt
|
||||
|
||||
class Derived1<T : Any?> : Base<T> {
|
||||
constructor(x: T) /* primary */ {
|
||||
super/*Base*/<T>(x = x)
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
override fun <Y : Any?> foo(y: Y): T {
|
||||
return <this>.<get-x>()
|
||||
}
|
||||
|
||||
override var bar: T
|
||||
field = x
|
||||
override get
|
||||
override set
|
||||
|
||||
override var <Z : Any?> Z.exn: T
|
||||
override get(): T {
|
||||
return <this>.<get-x>()
|
||||
}
|
||||
override set(value: T) {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,22 +0,0 @@
|
||||
abstract class Base<T : Any?> {
|
||||
constructor(x: T) /* primary */ {
|
||||
super/*Any*/()
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
val x: T
|
||||
field = x
|
||||
get
|
||||
|
||||
abstract fun <Y : Any?> foo(y: Y): T
|
||||
abstract var bar: T
|
||||
abstract get
|
||||
abstract set
|
||||
|
||||
abstract var <Z : Any?> Z.exn: T
|
||||
abstract get
|
||||
abstract set
|
||||
|
||||
}
|
||||
|
||||
@@ -1,25 +0,0 @@
|
||||
class Derived1<T : Any?> : Base<T> {
|
||||
constructor(x: T) /* primary */ {
|
||||
super/*Base*/<T>(x = x)
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
override fun <Y : Any?> foo(y: Y): T {
|
||||
return <this>.<get-x>()
|
||||
}
|
||||
|
||||
override var bar: T
|
||||
field = x
|
||||
override get
|
||||
override set
|
||||
|
||||
override var <Z : Any?> Z.exn: T
|
||||
override get(): T {
|
||||
return <this>.<get-x>()
|
||||
}
|
||||
override set(value: T) {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user