Reputation: 15589
I can specify this in TypeScript (thus can be done in JavaScript):
interface Foo {
(arg: any): void
foo: string
}
Can the same thing achieved in Kotlin?
Upvotes: 1
Views: 50
Reputation: 82017
This can be expressed in Kotlin, too:
interface Foo {
fun funX(arg: Any): Unit
val foo: String
}
Upvotes: 2