greg-dove commented on issue #207:
URL:
https://github.com/apache/royale-compiler/issues/207#issuecomment-1015893391
Thanks for the explanation, @joshtynjala, it's been a while since I used
this stuff in Haxe, and I didn't use TypeScript yet.
I am used the declaration/assignment pattern of
var name:Type = value of Type or SubType
And it seems inverted here when looking at it (without thinking too deeply
about it I guess).
So probably I am also getting confused about runtime vs. compiletime
behavior here.
for
`var fun:Function.<(ev:MouseEvent):void> = function(ev:Event):void {};`
`fun(new Event('blah'))` will fail at compile time, which is the main point,
I guess.
--
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]