Closed fiddlededee closed 9 months ago
That error isn't from Clikt, it's from Kotlin itself, so there's nothing I can do about it on my end.
The first result from googling that error message was this Kotlin issue: https://youtrack.jetbrains.com/issue/KT-32410
Seems like it will be fixed in Kotlin 2.0.
I use clikt in
kts
files and it is perfect. Could you please clarify one issue.This code works as intended:
So does this one (the one I use):
But this one fails (would be cleanest in simple cases, IMHO):
The message is
error: object Options3 captures the script class instance