joshtynjala commented on issue #207:
URL:
https://github.com/apache/royale-compiler/issues/207#issuecomment-1015900829
Yeah, it's kind of tricky. With function types, you need to think about what
arguments get passed in when the function is called to understand what other
function type can be assigned.
The other way around wouldn't work:
```as3
var fun:Function.<(ev:Event):void> = function(ev:MouseEvent):void {}; //
this should error, but what if not?
fun(new FocusEvent()); // whoa, that's not a MouseEvent!
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]