[Tests] Use stable order for ir/kotlinLike dumps
^KT-65406
This commit is contained in:
committed by
Space Team
parent
0fa42a9c11
commit
e6f4d6e6fa
+29
-28
@@ -1,49 +1,37 @@
|
||||
package ann
|
||||
|
||||
open annotation class Test1<T : Any?> : Annotation {
|
||||
val x: Int
|
||||
field = x
|
||||
get
|
||||
|
||||
constructor(x: Int) /* primary */ {
|
||||
super/*Any*/()
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
open annotation class Test2<T1 : Any, T2 : Any?> : Annotation {
|
||||
val x: Int
|
||||
field = x
|
||||
get
|
||||
|
||||
}
|
||||
|
||||
open annotation class Test2<T1 : Any, T2 : Any?> : Annotation {
|
||||
constructor(x: Int = 0) /* primary */ {
|
||||
super/*Any*/()
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
val x: Int
|
||||
field = x
|
||||
get
|
||||
|
||||
}
|
||||
|
||||
interface I<T : Any?> {
|
||||
}
|
||||
|
||||
open annotation class Test3<T1 : Any?, T2 : I<T1>> : Annotation {
|
||||
constructor(x: Test1<I<T2>>) /* primary */ {
|
||||
super/*Any*/()
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
val x: Test1<I<T2>>
|
||||
field = x
|
||||
get
|
||||
|
||||
}
|
||||
|
||||
class C<T : Any?> : I<T> {
|
||||
constructor() /* primary */ {
|
||||
constructor(x: Test1<I<T2>>) /* primary */ {
|
||||
super/*Any*/()
|
||||
/* <init>() */
|
||||
|
||||
@@ -52,16 +40,29 @@ class C<T : Any?> : I<T> {
|
||||
}
|
||||
|
||||
open annotation class Test4 : Annotation {
|
||||
val x: Array<Test3<Int, C<Int>>>
|
||||
field = x
|
||||
get
|
||||
|
||||
constructor(x: Array<Test3<Int, C<Int>>>) /* primary */ {
|
||||
super/*Any*/()
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
val x: Array<Test3<Int, C<Int>>>
|
||||
field = x
|
||||
}
|
||||
|
||||
open annotation class Test5<T : Any?> : Annotation {
|
||||
val xs: Array<out Test3<T, C<T>>>
|
||||
field = xs
|
||||
get
|
||||
|
||||
constructor(vararg xs: Test3<T, C<T>>) /* primary */ {
|
||||
super/*Any*/()
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class ARG {
|
||||
@@ -73,17 +74,13 @@ class ARG {
|
||||
|
||||
}
|
||||
|
||||
open annotation class Test5<T : Any?> : Annotation {
|
||||
constructor(vararg xs: Test3<T, C<T>>) /* primary */ {
|
||||
class C<T : Any?> : I<T> {
|
||||
constructor() /* primary */ {
|
||||
super/*Any*/()
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
val xs: Array<out Test3<T, C<T>>>
|
||||
field = xs
|
||||
get
|
||||
|
||||
}
|
||||
|
||||
@Test1<ARG>(x = 42)
|
||||
@@ -99,3 +96,7 @@ class CC {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
interface I<T : Any?> {
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user