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
Is there a way to initiliase an interface without creating a new class just like in java?
Support
2
667
March 18, 2022
Function Type is an Interface
Language Design
4
1945
May 30, 2022
Type for a class implementing an interface?
Language Design
4
5832
December 13, 2016
Check to see if object has a function/variable
Language Design
4
14052
September 30, 2020
Passing java class as parameter
Support
3
29692
September 4, 2016