Joshua Hansen
01/02/2025, 9:00 PMclass Foo(
@Transient var name: String,
var bar: String,
)
the compiler shows an error for the name
property:
This property is marked as @Transient and therefore must have an initializing expression
Given that this is a primary constructor parameter, I don't see why having a default value is still a requirement since it must be initialized. Any thoughts on this?Joshua Hansen
01/02/2025, 9:04 PM