why does the former work but not the latter ?
# announcements
l
why does the former work but not the latter ?
d
Local variables can be inferred to have types of anonymous objects, properties cannot
g
this is limitation of how Kotlin works with anonymous objects