# 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?

**URL:** <https://discuss.kotlinlang.org/t/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/7619>\
**Category:** Uncategorized\
**Created:** [April 30, 2018, 10:42am UTC](https://discuss.kotlinlang.org/t/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/7619 "2018-04-30T10:42:02Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![tieskedh](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/tieskedh/32/2816_2.png) [@tieskedh](https://discuss.kotlinlang.org/u/tieskedh)\
**Post date:** [May 1, 2018, 12:55pm UTC](https://discuss.kotlinlang.org/t/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/7619/10 "2018-05-01T12:55:57Z")

</div>

seems like the feature requested overhere: [Implicit interfaces as in Go](https://discuss.kotlinlang.org/t/implicit-interfaces-as-in-go/587)

---

_[View the full topic](https://discuss.kotlinlang.org/t/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/7619)._
