[Tests] Use stable order for ir/kotlinLike dumps
^KT-65406
This commit is contained in:
committed by
Space Team
parent
0fa42a9c11
commit
e6f4d6e6fa
+54
-54
@@ -1,83 +1,78 @@
|
||||
package foo
|
||||
|
||||
interface Base {
|
||||
abstract fun foo(x: String): String
|
||||
|
||||
}
|
||||
var global: String
|
||||
field = ""
|
||||
get
|
||||
set
|
||||
|
||||
class BaseImpl : Base {
|
||||
val s: String
|
||||
field = s
|
||||
get
|
||||
|
||||
constructor(s: String) /* primary */ {
|
||||
super/*Any*/()
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
val s: String
|
||||
field = s
|
||||
get
|
||||
|
||||
override fun foo(x: String): String {
|
||||
return "Base: " + <this>.<get-s>() + ":" + x
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
var global: String
|
||||
field = ""
|
||||
get
|
||||
set
|
||||
class Derived : DerivedBase, Base {
|
||||
private /* final field */ val $$delegate_0: Base = newBase()
|
||||
init {
|
||||
<set-global>(<set-?> = <get-global>().plus(other = ":Derived"))
|
||||
}
|
||||
|
||||
constructor() /* primary */ {
|
||||
super/*DerivedBase*/()
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
override fun foo(x: String): String {
|
||||
return <this>.#$$delegate_0.foo(x = x)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class Derived1 : DerivedBase, Base {
|
||||
private /* final field */ val $$delegate_0: Base = newBase()
|
||||
init {
|
||||
<set-global>(<set-?> = <get-global>().plus(other = ":Derived"))
|
||||
}
|
||||
|
||||
constructor() /* primary */ {
|
||||
super/*DerivedBase*/()
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
override fun foo(x: String): String {
|
||||
return <this>.#$$delegate_0.foo(x = x)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
open class DerivedBase {
|
||||
init {
|
||||
<set-global>(<set-?> = <get-global>().plus(other = ":DerivedBase"))
|
||||
}
|
||||
|
||||
constructor() /* primary */ {
|
||||
super/*Any*/()
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
init {
|
||||
<set-global>(<set-?> = <get-global>().plus(other = ":DerivedBase"))
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
fun newBase(): Base {
|
||||
<set-global>(<set-?> = <get-global>().plus(other = ":newBase"))
|
||||
return BaseImpl(s = "test")
|
||||
}
|
||||
|
||||
class Derived : DerivedBase, Base {
|
||||
constructor() /* primary */ {
|
||||
super/*DerivedBase*/()
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
private /* final field */ val $$delegate_0: Base = newBase()
|
||||
override fun foo(x: String): String {
|
||||
return <this>.#$$delegate_0.foo(x = x)
|
||||
}
|
||||
|
||||
init {
|
||||
<set-global>(<set-?> = <get-global>().plus(other = ":Derived"))
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class Derived1 : Base, DerivedBase {
|
||||
constructor() /* primary */ {
|
||||
super/*DerivedBase*/()
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
private /* final field */ val $$delegate_0: Base = newBase()
|
||||
override fun foo(x: String): String {
|
||||
return <this>.#$$delegate_0.foo(x = x)
|
||||
}
|
||||
|
||||
init {
|
||||
<set-global>(<set-?> = <get-global>().plus(other = ":Derived"))
|
||||
}
|
||||
interface Base {
|
||||
abstract fun foo(x: String): String
|
||||
|
||||
}
|
||||
|
||||
@@ -87,3 +82,8 @@ fun box(): String {
|
||||
return "OK"
|
||||
}
|
||||
|
||||
fun newBase(): Base {
|
||||
<set-global>(<set-?> = <get-global>().plus(other = ":newBase"))
|
||||
return BaseImpl(s = "test")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user