fun doSomething(a: T) {} fun test() { class Test{ fun contains(a: Int) : Boolean = true } val test = Test() doSomething((0 in test).toString()) }