Files
kotlin-fork/compiler/testData/ir/irText/classes/declarationOrder.kt
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

20 lines
461 B
Kotlin
Vendored

// FIR_IDENTICAL
// SKIP_KLIB_TEST
// IGNORE_BACKEND_K1: JS_IR
// Ignore reason: there is a js name clash between function `a()` and property `a`
package test
class A() {
constructor(x: Int) : this()
fun b() {}
fun a() {}
val b: Int = 1
val a: Int = 2
constructor(x: String) : this()
val Int.b: String get() = "b"
fun String.b() {}
val Int.a: String get() = "a"
fun String.a() {}
constructor(x: Double) : this()
}