Closures for argument-less signal handlers dont work as expected
Submitted by Felix Wolfsteller
Link to original bug (#611460)
Description
Created attachment 154937 Sample code to demonstrate misbehaving event handlers in closures
In Genie with javac 0.7.10, for an event that does not take arguments, like
event empty_event ()
I fail to register a "closured" signal handler that can access its context, like
var s = "string" emitter.empty_event += def handle print s
Sample code is attached. Other minor issues (parsing, I guess), can be seen in the sample code too. I assume that there is a common underlying source. If it happens to be separete issue, kindly ask me to report as a separate bug.
Attachment 154937, "Sample code to demonstrate misbehaving event handlers in closures":
empty_signals.gs
Version: 0.7.x