David
10/02/2023, 10:00 AM._indexOfFirstInstance_<KoFunctionDeclaration>()
seems to also hit secondary constructors.
Here is a test that will break:
class Test(val string: String) {
constructor(int: Int): this(int.toString())
val something = ""
fun doSomething() {
}
}
I tried looking at some solutions but it seems to be hard to find out from the API surface the difference between a function and a secondary constructor.Natalia Peterwas
10/02/2023, 10:35 AMDavid
10/02/2023, 10:36 AMigor.wojda
10/09/2023, 11:38 AMv0.13.0
has been released. It contains the fix.
See https://github.com/LemonAppDev/konsist/releases/tag/v0.13.0David
10/09/2023, 11:47 AM