Files
Roman Golyshev 5848cce95e KTIJ-2448 Correctly filter synthetic declarations in buildDecompiledText
We used to render any callable declaration that's either
a directly-declared one, or which name starts with `component*`.

It works incorrectly when there are delegated or fake overridden
callables named `component*` coming from base classes or interfaces.

This makes `buildDecompiledText` render only synthesised `component*`
functions (which should come only from the data-classes).

^KTIJ-2448 Fixed

GitOrigin-RevId: 5f4b0625eaf95424f268b776f5cfd8a2b6820338
2021-10-11 18:53:39 +00:00

8 lines
138 B
Kotlin

package dependency
interface ComponentInterface {
operator fun component1(): Int
fun component2(): Int
val component3: Int
}