``` private fun foo(p:C) {… do the work…} fun foo(...
# announcements
o
Copy code
private fun foo(p:C) {… do the work…}
fun foo(p:D1) = foo(p) // public API
fun foo(p:D2) = foo(p) // public API
Like this