moko-resources
moko-resources copied to clipboard
Generated resource-objects cannot be used for delegation
Objects generated in MR like MR.images cannot be used for delegation. The idea is that the delegated object - let's call it Icons - would be used like so:
val anIcon = Icons.an_icon
It would be ideal if the generated MR.images would implement an interface that describes the resource names rather than declaring the resource vals directly in the MR.images object.
Let me know if you want to me describe a valid usecase in a project where such delegation would make sense.