[Tests] Use stable order for ir/kotlinLike dumps
^KT-65406
This commit is contained in:
committed by
Space Team
parent
0fa42a9c11
commit
e6f4d6e6fa
Vendored
+14
-13
@@ -1,6 +1,3 @@
|
||||
fun use(f: @ExtensionFunctionType Function2<C, Int, Unit>) {
|
||||
}
|
||||
|
||||
class C {
|
||||
constructor() /* primary */ {
|
||||
super/*Any*/()
|
||||
@@ -10,22 +7,22 @@ class C {
|
||||
|
||||
}
|
||||
|
||||
fun C.extensionVararg(i: Int, vararg s: String) {
|
||||
fun C.extensionBoth(i: Int, s: String = "", vararg t: String) {
|
||||
}
|
||||
|
||||
fun C.extensionDefault(i: Int, s: String = "") {
|
||||
}
|
||||
|
||||
fun C.extensionBoth(i: Int, s: String = "", vararg t: String) {
|
||||
fun C.extensionVararg(i: Int, vararg s: String) {
|
||||
}
|
||||
|
||||
fun testExtensionVararg() {
|
||||
fun testExtensionBoth() {
|
||||
use(f = { // BLOCK
|
||||
local fun extensionVararg(p0: C, p1: Int) {
|
||||
p0.extensionVararg(i = p1)
|
||||
local fun extensionBoth(p0: C, p1: Int) {
|
||||
p0.extensionBoth(i = p1)
|
||||
}
|
||||
|
||||
::extensionVararg
|
||||
::extensionBoth
|
||||
})
|
||||
}
|
||||
|
||||
@@ -39,12 +36,16 @@ fun testExtensionDefault() {
|
||||
})
|
||||
}
|
||||
|
||||
fun testExtensionBoth() {
|
||||
fun testExtensionVararg() {
|
||||
use(f = { // BLOCK
|
||||
local fun extensionBoth(p0: C, p1: Int) {
|
||||
p0.extensionBoth(i = p1)
|
||||
local fun extensionVararg(p0: C, p1: Int) {
|
||||
p0.extensionVararg(i = p1)
|
||||
}
|
||||
|
||||
::extensionBoth
|
||||
::extensionVararg
|
||||
})
|
||||
}
|
||||
|
||||
fun use(f: @ExtensionFunctionType Function2<C, Int, Unit>) {
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user