Having a field named "auto" messes with the underlying c compiler
As you can see, I have a field called auto
here:
struct Foo {
int auto;
}
#define TYPE_FOO (foo_get_type ())
typedef struct _Foo Foo;
struct _Foo {
gint auto;
};
That gives me this error:
test.vala.c:22:14: error: expected identifier or ‘(’ before ‘auto’
22 | gint auto;
| ^~~~
test.vala.c:23:1: warning: no semicolon at end of struct or union
23 | };
| ^
Edited by Rico Tzschichholz