Improve error message when encountering recursively defined structs. #2146

This commit is contained in:
Christoffer Lerno
2025-05-19 21:36:47 +02:00
parent 9052f07c19
commit 7fcc91edc8
3 changed files with 15 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
struct GlobalNode
{
Ast node;
}
struct Ast
{
GlobalNode global; // #error: Recursive defintion of 'GlobalNode'
}