Segfault when initializing List or Dict properties in Geanie
Submitted by val..@..il.com
Link to original bug (#674951)
Description
Created attachment 212962 Example in Vala and Genie; run "cmake ." and "make"
There appears to be a quite severe problem with the Genie Parser when it comes to Initialization of objects as properties. What I want to do is to have a class with "Dict" and "List" Properties (provided by Libgee, see here: http://live.gnome.org/Genie#Lists).
class Test : Object prop d : dict of string,string prop l : list of string construct (li : list of string) l = new list of string d = new dict of string,string for s in li l.add(s) // segfaults
I attached one variant developed in Vala and one variant in Genie. The Vala version does work perfectly well, while the Geanie Variant causes segfaults in the constructor(s) of the Test class.
I hope this is not just a misunderstanding by me, so please forgive me I'm pretty new to Genie. Thank you for your time and dedication developing Vala/Genie.
Attachment 212962, "Example in Vala and Genie; run "cmake ." and "make"":
testcase.zip
Version: 0.16.x