in the following example the compiler gives the error Recursive definition of 'Test'
struct Test @tag("test", Test{})
{
int x;
}
the same happens with enum Test @tag("test", Test.FOO) {FOO} but with another message saying 'Test' has no enumeration 'FOO'
in the below example the compiler crashes with the message FATAL ERROR Should be unreachable -> in sema_identifier_find_possible_inferred @ in /home/runner/work/c3c/c3c/src/compiler/sema_expr.c:946
in the following example the compiler gives the error
Recursive definition of 'Test'
the same happens with
enum Test @tag("test", Test.FOO) {FOO}
but with another message saying'Test' has no enumeration 'FOO'
in the below example the compiler crashes with the message
FATAL ERROR Should be unreachable -> in sema_identifier_find_possible_inferred @ in /home/runner/work/c3c/c3c/src/compiler/sema_expr.c:946
this only happens when:
Foo
as an argumentFoo.BAR
) orFoo{}
BAR
instead ofFoo.BAR
).