Kotlin Discussions
If I know that all of my possible input objects have a certain method, but they do not share any interface, how can I declare a parameter for them in my function?
tieskedh
May 1, 2018, 12:55pm
10
seems like the feature requested overhere:
Implicit interfaces as in Go
1 Like
show post in topic
Related Topics
Topic
Replies
Views
Activity
Function Type is an Interface
Language Design
4
1513
May 30, 2022
Omit call parameters when a function directly calls another of the same paramters
Language Design
1
765
January 2, 2020
Reflection to get function parameter names?
2
2605
August 5, 2014
How can I write this without kotlin SAM convertion?
8
1023
April 1, 2019
Kotlin equivalent of JS function.apply or function.call
6
1864
June 7, 2012