elexx
10/05/2018, 5:34 AMT is MyEvent. Any is just the upper bound if you didn't specify one, like so: class MyEvent<out T : Number>(val param: T) : FXEvent() and subscribe with subscribe<MyEvent<Number>>. But I guess there is no benefit to just declaring the event class like class MyEvent(val param: Number) : FXEvent()