mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Improve error message when encountering recursively defined structs. #2146
This commit is contained in:
9
test/test_suite/struct/struct_recursive.c3
Normal file
9
test/test_suite/struct/struct_recursive.c3
Normal file
@@ -0,0 +1,9 @@
|
||||
struct GlobalNode
|
||||
{
|
||||
Ast node;
|
||||
}
|
||||
|
||||
struct Ast
|
||||
{
|
||||
GlobalNode global; // #error: Recursive defintion of 'GlobalNode'
|
||||
}
|
||||
Reference in New Issue
Block a user