Seems the problem is the `String` in `val name: St...
# announcements
n
Seems the problem is the
String
in
val name: String by map
. Given that the map value type is
Any?
in my example, perhaps compiler should only allow
Any?
as property type. This would fix these problems (I would have to use
Map<String, String>
) but of course prevents the "mixed property type" usage.