I have a function like that: fun ConfigurationManager.getXConfig(): List<Resource> {}
I would like to be able to do: fun ConfigurationManager.getXConfig(): XConfigs {}
so I can write extension functions such as Xconfigs.names (that would be a simple fun XConfigs.names: get() = this.map { it: Resource -> it.name }
s
SiebelsTim
01/21/2019, 7:13 AM
You cannot overload a function when only the return types differ, if that's what you're asking.