Closed alain-espina closed 4 years ago
how do you use nameOf if there are two methods having the same name but different parameters?
You could use a type annotation like this:
def foo(x: Int) = ??? def foo(x: String) = ??? println(nameOf(foo(_: Int))) // "foo"
how do you use nameOf if there are two methods having the same name but different parameters?