Files
kotlin-fork/compiler/testData/ir/irText/classes/declarationOrder.kt.txt
T
Dmitriy Novozhilov 839026b6fe [FIR2IR] Generate IR declarations in classes in strict order
Order is following:
- declared declarations in declaration (in source) order
- generated declarations in sorted order
2023-04-11 13:43:38 +00:00

54 lines
526 B
Kotlin
Vendored

package test
class A {
constructor() /* primary */ {
super/*Any*/()
/* <init>() */
}
constructor(x: Int) {
this/*A*/()
}
fun b() {
}
fun a() {
}
val b: Int
field = 1
get
val a: Int
field = 2
get
constructor(x: String) {
this/*A*/()
}
val Int.b: String
get(): String {
return "b"
}
fun String.b() {
}
val Int.a: String
get(): String {
return "a"
}
fun String.a() {
}
constructor(x: Double) {
this/*A*/()
}
}