Hi, what would be the Kotlin equivalent of this : ...
# javascript
a
Hi, what would be the Kotlin equivalent of this :
Copy code
export class A<T extends (...args: any[]) => void> {

}

type B = (a: string, b: string, c: string) => void;

export interface C {
    foo: A<B>
}
I tried this but it says
Type argument is not within its bounds.
:
Copy code
open external class A<T : (args: Array<out Any>) -> Unit)

typealias B = (a: String, b: String, c: String) -> Unit

external interface C {
    var foo: A<B>
}
t
T: Function<Unit>
a
wow it was so simple, thanks !
t
Works?
a
yes !