swiz/swiz-framework — Issue #30: Support for nested properties breaks the rest argument [...]
Author: bclinkinbeard
Created: 2011-12-19 18:50:13+00:00
State: open

**Migrated from SWIZ-65**

When Swiz added support for nested properties on EventHandler tags (I think in 1.3?), it broke the ability to use the rest parameter.

E.g. this worked previously:
[EventHandler(event="MyEvent.MY_CONSTANT",properties="...rest")]
public function onMyEvent( ... rest ) : void { // do something with rest }

It seems like an acceptable tradeoff, but it should be documented that this is no longer possible.