[Tests] Use stable order for ir/kotlinLike dumps
^KT-65406
This commit is contained in:
committed by
Space Team
parent
0fa42a9c11
commit
e6f4d6e6fa
+34
-33
@@ -1,10 +1,4 @@
|
||||
class C {
|
||||
constructor(x: Int, y: Int, z: Int = 1) /* primary */ {
|
||||
super/*Any*/()
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
val y: Int
|
||||
field = y
|
||||
get
|
||||
@@ -14,35 +8,10 @@ class C {
|
||||
get
|
||||
set
|
||||
|
||||
constructor() {
|
||||
this/*C*/(x = 0, y = 0, z = 0)
|
||||
}
|
||||
|
||||
val property: Int
|
||||
field = 0
|
||||
get
|
||||
|
||||
val propertyWithGet: Int
|
||||
get(): Int {
|
||||
return 42
|
||||
}
|
||||
|
||||
var propertyWithGetAndSet: Int
|
||||
get(): Int {
|
||||
return <this>.<get-z>()
|
||||
}
|
||||
set(value: Int) {
|
||||
<this>.<set-z>(<set-?> = value)
|
||||
}
|
||||
|
||||
fun function() {
|
||||
println(message = "1")
|
||||
}
|
||||
|
||||
fun Int.memberExtensionFunction() {
|
||||
println(message = "2")
|
||||
}
|
||||
|
||||
class NestedClass {
|
||||
constructor() /* primary */ {
|
||||
super/*Any*/()
|
||||
@@ -61,12 +30,12 @@ class C {
|
||||
}
|
||||
|
||||
interface NestedInterface {
|
||||
abstract fun foo()
|
||||
|
||||
fun bar() {
|
||||
return <this>.foo()
|
||||
}
|
||||
|
||||
abstract fun foo()
|
||||
|
||||
}
|
||||
|
||||
companion object Companion {
|
||||
@@ -78,4 +47,36 @@ class C {
|
||||
|
||||
}
|
||||
|
||||
constructor() {
|
||||
this/*C*/(x = 0, y = 0, z = 0)
|
||||
}
|
||||
|
||||
constructor(x: Int, y: Int, z: Int = 1) /* primary */ {
|
||||
super/*Any*/()
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
fun function() {
|
||||
println(message = "1")
|
||||
}
|
||||
|
||||
fun Int.memberExtensionFunction() {
|
||||
println(message = "2")
|
||||
}
|
||||
|
||||
val propertyWithGet: Int
|
||||
get(): Int {
|
||||
return 42
|
||||
}
|
||||
|
||||
var propertyWithGetAndSet: Int
|
||||
get(): Int {
|
||||
return <this>.<get-z>()
|
||||
}
|
||||
set(value: Int) {
|
||||
<this>.<set-z>(<set-?> = value)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user