I have a function like that: fun ConfigurationMana...
# getting-started
b
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
You cannot overload a function when only the return types differ, if that's what you're asking.