[Tests] Use stable order for ir/kotlinLike dumps
^KT-65406
This commit is contained in:
committed by
Space Team
parent
0fa42a9c11
commit
e6f4d6e6fa
Vendored
+15
-15
@@ -3,6 +3,9 @@ fun interface KRunnable {
|
||||
|
||||
}
|
||||
|
||||
interface Unrelated {
|
||||
}
|
||||
|
||||
fun <T : Any?> id(x: T): T {
|
||||
return x
|
||||
}
|
||||
@@ -25,6 +28,17 @@ fun test1(a: Function0<Unit>) {
|
||||
}
|
||||
}
|
||||
|
||||
fun test10(a: Any) {
|
||||
when {
|
||||
when {
|
||||
a is Unrelated -> a /*as Unrelated */ is Function0<Unit>
|
||||
else -> false
|
||||
} -> { // BLOCK
|
||||
run1(r = a /*as Function0<Unit> */ /*-> KRunnable */)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fun test2(a: KRunnable) {
|
||||
a as Function0<Unit> /*~> Unit */
|
||||
run1(r = a)
|
||||
@@ -78,13 +92,10 @@ fun <T : Function1<Int, Int>> test7a(a: T) {
|
||||
run1(r = a /*as Function0<Unit> */ /*-> KRunnable */)
|
||||
}
|
||||
|
||||
fun <T> test7b(a: T) where T : Function1<Int, Unit>, T : Function0<Unit> {
|
||||
fun <T> test7b(a: T) where T : Function0<Unit>, T : Function1<Int, Unit> {
|
||||
run1(r = a /*-> KRunnable */)
|
||||
}
|
||||
|
||||
interface Unrelated {
|
||||
}
|
||||
|
||||
fun <T> test7c(a: T) where T : Unrelated, T : Function0<Unit> {
|
||||
run1(r = a /*-> KRunnable */)
|
||||
}
|
||||
@@ -97,14 +108,3 @@ fun test9() {
|
||||
run1(r = ::test9 /*-> KRunnable */)
|
||||
}
|
||||
|
||||
fun test10(a: Any) {
|
||||
when {
|
||||
when {
|
||||
a is Unrelated -> a /*as Unrelated */ is Function0<Unit>
|
||||
else -> false
|
||||
} -> { // BLOCK
|
||||
run1(r = a /*as Function0<Unit> */ /*-> KRunnable */)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user