GNOME Bugzilla – Bug 587286
valac stops with assertion when 'catch' has no arguments
Last modified: 2009-08-16 21:19:54 UTC
Please describe the problem: When I write try{} catch {}, and catch has no arguments, valac doesn't show valid error message, but stops with assertion "** (valac:13931): CRITICAL **: vala_error_type_real_compatible: assertion `target_type != NULL' failed" Steps to reproduce: 1. write try{} catch {} block in your program. There should be no parentheses and arguments after catch. 2. compile it Actual results: valac shows assertion "** (valac:13931): CRITICAL **: vala_error_type_real_compatible: assertion `target_type != NULL' failed" Expected results: compile my program Does this happen every time? yes Other information:
Cannot reproduce this with master and following simple test case: void main () { try { } catch { } }