kpgalligan
07/23/2019, 3:53 AMval
with “Inline class cannot have properties with backing fields”, even if all implementations provide getters. Is there a way to do this? Next step is to try the vals as extensions.rharter
07/23/2019, 4:10 PMexpect val id: String get()
kpgalligan
07/23/2019, 4:24 PMdocument()
on the store, I want a DocumentReference
. That was a typealias originally, but I changed that to be an inline wrapper in the hopes that I could clean up the interface a bit. However, on the JVM, document()
resolves to the actual firestore DocumentReference
and not my wrapper. You can only use the same name for things if all clients return the same thing. If your wrapper tries to return something different, the IDE might think it’s OK, but it’s not.