raulraja
09/26/2017, 6:08 PMdiesieben07
09/26/2017, 6:52 PMalexcouch
09/26/2017, 6:56 PMlambdaCall(LambdaClass::methodReference)
like that. Cause really, this works because the runtimes fills in the correct arguments based on the method/function the method is being referenced from (right?) so ideally in kotlin, I would assume that a function reference is the same thing since kotlin uses the terms "function" and "member functions" so when I hear "function references" I think of method references in java. Which I would assume the answer to be no, but I could be wrongraulraja
09/26/2017, 7:10 PM::myfunc<A>
inline fun <reified A> myfunc(): String =
A::class.java.simpleName
fun myfunc2(): String = ""
val y = ::myfunc2
Does not work:
inline fun <reified A> myfunc(): String =
A::class.java.simpleName
val x = ::myfunc<Int>
diesieben07
09/26/2017, 7:42 PMraulraja
09/26/2017, 7:49 PMinline
thoughdiesieben07
09/26/2017, 7:49 PMraulraja
09/26/2017, 7:50 PM