Recursive definition of tag not detected with nested tag/tagof #2790

This commit is contained in:
Christoffer Lerno
2026-01-22 19:16:54 +01:00
parent 0add42b0a0
commit e257500e03
3 changed files with 7 additions and 1 deletions

View File

@@ -0,0 +1,4 @@
struct Foo @tag("", Foo.tagof("")) // #error: Recursive definition of 'Foo'.
{
}
fn int main() => 1;