[Tests] Use stable order for ir/kotlinLike dumps
^KT-65406
This commit is contained in:
committed by
Space Team
parent
0fa42a9c11
commit
e6f4d6e6fa
@@ -1,3 +1,18 @@
|
||||
interface IFoo {
|
||||
val A.foo: B
|
||||
get(): B {
|
||||
return B
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
interface IInvoke {
|
||||
operator fun B.invoke(): Int {
|
||||
return 42
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
object A {
|
||||
private constructor() /* primary */ {
|
||||
super/*Any*/()
|
||||
@@ -16,21 +31,6 @@ object B {
|
||||
|
||||
}
|
||||
|
||||
interface IFoo {
|
||||
val A.foo: B
|
||||
get(): B {
|
||||
return B
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
interface IInvoke {
|
||||
operator fun B.invoke(): Int {
|
||||
return 42
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
fun test(fooImpl: IFoo, invokeImpl: IInvoke) {
|
||||
with<A, Int>(receiver = A, block = local fun A.<anonymous>(): Int {
|
||||
return with<IFoo, Int>(receiver = fooImpl, block = local fun IFoo.<anonymous>(): Int {
|
||||
@@ -43,3 +43,4 @@ fun test(fooImpl: IFoo, invokeImpl: IInvoke) {
|
||||
}
|
||||
) /*~> Unit */
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user