aleclarson / emitter-kit

Type-safe event handling for Swift
MIT License
566 stars 70 forks source link

How can I extend Event? #14

Closed katopz closed 9 years ago

katopz commented 9 years ago

In case Signal can't send data.(Why BTW?) But I need to send some so I've to extend Event (am I right?) But xcode give me and error if I try to

class Foo: Event <EventData: Any> {
}
Expected '>' to complete generic argument list

Thanks

aleclarson commented 9 years ago

This should work for you!

class Foo <EventData: Any> : Event<EventData> {
}