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?
Uncategorized
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
Support for "satisfies an interface"
Uncategorized
18
586
August 30, 2025
By Convention vs Interfaces
Uncategorized
6
2243
April 22, 2014
Implementing an interface for an existing type
Language Design
15
6824
March 4, 2021
Implicit interfaces as in Go
Uncategorized
30
8667
November 4, 2022
Implicit interfaces
Uncategorized
22
10301
January 8, 2018