I havent looked at the bytecode, but I think you a...
# tornadofx
e
I havent looked at the bytecode, but I think you are right about
T
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()