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
Support for "satisfies an interface"
18
236
August 30, 2025
By Convention vs Interfaces
6
2114
April 22, 2014
Implementing an interface for an existing type
Language Design
15
6376
March 4, 2021
Implicit interfaces as in Go
30
8049
November 4, 2022
Implicit interfaces
22
9880
January 8, 2018