Kotlin generation bug: private set code messes up code

Hi there.

If you use Studio to create a table, and set one of the fields to read-only, the Kotlin code is generated incorrectly:

var processName: String? = null private set

The code won’t compile if the private set is on the same line as the declaration, not without a semi-colon to separate them.

Furthermore, if you remove the read-only flag and put it back, a second private set is generated for the same variable.

Hi,
Thanks for reporting the problem.
I have created a ticket: https://youtrack.cuba-platform.com/issue/STUDIO-8285