I have an interface with a property (not nullable)...
# announcements
a
I have an interface with a property (not nullable) and a lot of data classes implementing it (
override val
). Everything is fine, but in some tests I don't care about this property and want to assign some default value, so I use
MyClass(data, ..., defaultValue())
when creating class instances. Is there any way to do it without adding
, defaultValue()
each time, except adding
= defaultValue()
to constructor of all classes?