spxbhuhb / adaptive

Consolidated full-stack application development library for Kotlin
https://adaptive.fun
Apache License 2.0
3 stars 0 forks source link

[adat] array constructor variable reference #72

Open toth-istvan-zoltan opened 1 month ago

toth-istvan-zoltan commented 1 month ago

This results in a compiler error as the reference to id is not mapped properly:

The problem is in arrayConstuctor.kt, where the default values are copied from the primary constructor defaults. Maybe we could just call the primary constructor?

@Adat
class SomeCass(
    val id: Int = 0,
    val name: String = "SomeClass $id"
)