user
05/26/2016, 9:51 AMclass Sample {
/**
* If calling this, don't call [fancy] or [fancy] before [build].
*/
fun fancy(value: String) { ... }
fun fancy(value: Int) { ... }
fun fancy(value: String, extra: String) { ... }
fun build(): Something { ... }
}
Something like [fancy(Int)]
and [fancy(String, String)]
would be nice in the scenario, to separate the reference by parameter types and thus being able to reference one specific overload.