okkero
01/30/2017, 3:52 PMfun <T> disambiguate(a: (T) -> Unit) = a
and call it like this disambiguate<String>(::println)
. But this is very specific to this case, and doesn't scale. Would be nice to have a general way to do this sort of thing without an intermediate variable.