ffe0d9de70
Descriptors are already supposed to be sorted in scopes. The problem is that rendering descriptors for sorting takes a lot of time (~1.5% of total compilation time of intellij with JVM IR), and simple heuristics, like comparing by names first, don't fully help with it. #KT-48233
51 lines
875 B
Plaintext
Vendored
51 lines
875 B
Plaintext
Vendored
annotation class Ann : Annotation {
|
|
constructor() /* primary */
|
|
|
|
}
|
|
|
|
interface IFoo {
|
|
@Ann
|
|
abstract val testVal: String
|
|
abstract get
|
|
|
|
@Ann
|
|
abstract fun testFun()
|
|
@Ann
|
|
abstract val String.testExtVal: String
|
|
abstract get
|
|
|
|
@Ann
|
|
abstract fun String.testExtFun()
|
|
|
|
}
|
|
|
|
class DFoo : IFoo {
|
|
constructor(d: IFoo) /* primary */ {
|
|
super/*Any*/()
|
|
/* <init>() */
|
|
|
|
}
|
|
|
|
private /* final field */ val $$delegate_0: IFoo = d
|
|
override val testVal: String
|
|
override get(): String {
|
|
return <this>.#$$delegate_0.<get-testVal>()
|
|
}
|
|
|
|
override val String.testExtVal: String
|
|
override get(): String {
|
|
return (<this>.#$$delegate_0, <this>).<get-testExtVal>()
|
|
}
|
|
|
|
@Ann
|
|
override fun testFun() {
|
|
<this>.#$$delegate_0.testFun()
|
|
}
|
|
|
|
@Ann
|
|
override fun String.testExtFun() {
|
|
(<this>.#$$delegate_0, <this>).testExtFun()
|
|
}
|
|
|
|
}
|