andym
08/15/2019, 3:45 PMclass Foo {
fun bar(p1: Int)
fun bar(p2: String)
}
Is it possible to reference one of the bar()
overloads as a function argument?karelpeeters
08/15/2019, 5:09 PMval ref: (Int) -> Unit = ::bar
foo(ref)
andym
08/15/2019, 5:27 PM