Join Slack
Powered by
Hi all is it possible to get the class type of the...
# announcements
l
laith
09/16/2020, 9:50 PM
Hi all is it possible to get the class type of the lambda ? something like
Copy code
((String) -> String)::class
s
Shawn
09/16/2020, 10:01 PM
As written? definitely not
Shawn
09/16/2020, 10:01 PM
Depending on what you really need, the answer is maybe
Shawn
09/16/2020, 10:01 PM
but the answer is probably no, since generic types are erased at runtime
l
laith
09/16/2020, 10:25 PM
I see, I was looking for something similar to what we do for example to String::class but for lambda
6
Views
Open in Slack
Previous
Next