The below code
fun getValue(): Int {
return 42
}
fun getValue(): String {
return "Foo"
}
gives the following error:
Conflicting overloads: local final fun getValue(): String defined in main, local final fun getValue(): Int defined in main.
Is there any way to get around this without renaming one of the functions?