GNOME Bugzilla – Bug 764041
Classes have an enforced minimum length of 3 chars but structs don't
Last modified: 2017-11-19 15:53:00 UTC
Example: The following code compiles and works: struct Nanana { int i; } class Main { static void main() { Nanana n = { 42 }; Value v = n; print("%d\n", n.i); print("%d\n", ((Nanana)v).i); } } The following code compiles, but doesn't work (GLib-GObject-CRITICAL, infinite loop): struct N { int i; } class Main { static void main() { N n = { 42 }; Value v = n; print("%d\n", n.i); print("%d\n", ((N)v).i); } }
Created attachment 364007 [details] [review] codegen: Enforce name-length >= 3 for structs using GType
Attachment 364007 [details] pushed as be9e795 - codegen: Enforce name-length >= 3 for structs using GType