allanhasegawa
02/20/2018, 5:35 PMobject Foo {
private val hey = "Hello,"
fun hello(value: String) {
println("$hey $value")
}
fun bar() {
ref(Foo::hello)
}
fun ref(f: Foo.(String) -> Unit) {
f.invoke(this, "World")
}
}
The "ref(Foo::hello)" doesn't type match. Any help? 🙂