[Tests] Use stable order for ir/kotlinLike dumps
^KT-65406
This commit is contained in:
committed by
Space Team
parent
0fa42a9c11
commit
e6f4d6e6fa
@@ -1,14 +1,3 @@
|
||||
interface I<G : Any?> {
|
||||
fun <T : Any?> T.fromInterface(): T {
|
||||
return <this>
|
||||
}
|
||||
|
||||
fun genericFromSuper(g: G): G {
|
||||
return g
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
open class BaseClass {
|
||||
constructor() /* primary */ {
|
||||
super/*Any*/()
|
||||
@@ -23,13 +12,33 @@ open class BaseClass {
|
||||
|
||||
}
|
||||
|
||||
interface I<G : Any?> {
|
||||
fun <T : Any?> T.fromInterface(): T {
|
||||
return <this>
|
||||
}
|
||||
|
||||
fun genericFromSuper(g: G): G {
|
||||
return g
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
object C : BaseClass, I<String> {
|
||||
var p: Int
|
||||
field = 4
|
||||
get
|
||||
set
|
||||
|
||||
private constructor() /* primary */ {
|
||||
super/*BaseClass*/()
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
fun Boolean.f(): Int {
|
||||
return 3
|
||||
}
|
||||
|
||||
fun f(s: Int): Int {
|
||||
return 1
|
||||
}
|
||||
@@ -38,24 +47,15 @@ object C : BaseClass, I<String> {
|
||||
return 2
|
||||
}
|
||||
|
||||
fun Boolean.f(): Int {
|
||||
return 3
|
||||
fun <T : Any?> g1(t: T): T {
|
||||
return t
|
||||
}
|
||||
|
||||
var p: Int
|
||||
field = 4
|
||||
get
|
||||
set
|
||||
|
||||
val Int.ext: Int
|
||||
get(): Int {
|
||||
return 6
|
||||
}
|
||||
|
||||
fun <T : Any?> g1(t: T): T {
|
||||
return t
|
||||
}
|
||||
|
||||
val <T : Any?> T.g2: T
|
||||
get(): T {
|
||||
return <this>
|
||||
@@ -100,3 +100,4 @@ fun box(): String {
|
||||
}
|
||||
return "OK"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user