[Vala] Patch for BZ593734



See the attachment.

Without this patch the default signal handler is barely useful, since
'this' is not added to the hidden method's scope. The original test-case
didn't cover this issue. My bad.


----Test case ---
public class Test  {
        public void print_this() {
                message("%p", this);
        }
        public virtual signal void test() {
                this.print_this();
                print_this();
        }
        public static void main() {
                Test t = new Test();
                t.test();
        }
}
------Cut ends----
Yu

Attachment: 0001-Fix-this-access-in-def-signal-handlers-bz593734.patch
Description: Text Data



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]