Soren Valle
09/15/2019, 6:48 PMclass SomeClass {
var someProp: Any? = null
}
fun main() {
val someClass = SomeClass()
someClass.someProp = {
println("I do things")
}
// else where
if(someClass.someProp is Function<*>){
someClass.someProp() // invoke not found...
}
}
Andrey Chernov
09/15/2019, 6:56 PMSoren Valle
09/15/2019, 6:58 PMis Function<*>
where it isn't doing what I would expect doesn't mean it isn't doing what it was intended to do and I just need to learn it. I meant it only as, "how do I accomplish this"?Soren Valle
09/15/2019, 7:01 PMis Lambda
would be nice.molikuner
09/15/2019, 7:55 PMSoren Valle
09/15/2019, 8:02 PMFunctionN
. Perfect.