Hi there! Newcomer to Konsist (KotlinConf24), I'm ...
# konsist
g
Hi there! Newcomer to Konsist (KotlinConf24), I'm glad to have such a nice tool ❤️ . I'm facing an issue that maybe a bad understanding from me.
data class Foo(val bar: MyEnum = MyEnum.ONE)
When I select the primary constructor of this class and tries to get the KoParameterDeclaration.defaultValue of the first param I get
null
, also the [KoParameterDeclaration].text does contain
"val bar: MyEnum = MyEnum.ONE"
as expected.
I don't have this issue with other types so far, so maybe the enum class doesn't offer a proper default value?
Mmmh, looks like I was on 0.15.1, can't reproduce on the latest version 👍 (so far at least...)
❤️ 2
i
Thx for letting us know. Keep us posted if issue resufraces.
❤️ 1
g
Sure, thanks for your work! I've created https://github.com/LemonAppDev/konsist/discussions/1344 Should I continue other reports on github discussions?
i
You cna post here to get instant feedback, although discussions make stuff easier to review/track for us
👌 1