GNOME Bugzilla – Bug 611150
Usage of certain names for generics break build or runtime
Last modified: 2018-02-19 09:56:24 UTC
Created attachment 154732 [details] Sample code to trigger misbehaviour with bad names "for" generics. In Genie, for class Thing of object : Object I get an compiler error that is not clear in what the underlying problem is. If I use class InsaneThing of _object_ : Object I get an error at runtim: GLib-GObject-CRITICAL **: g_param_spec_internal: assertion `(name[0] >= 'A' && name[0] <= 'Z') || (name[0] >= 'a' && name[0] <= 'z')' failed Segmentation fault.*/ I imagine that valac should either emit a proper warning here. Sample code is attached.
*** This bug has been marked as a duplicate of bug 790239 ***