# HG changeset patch # User Simon Heath # Date 1689789162 14400 # Wed Jul 19 13:52:42 2023 -0400 # Branch devel # Node ID 3dcc72d54f238c1aed1a694ccf5659647117b1ab # Parent 75f6073fde1a8e69f9623948cc675165d18a3471 Oops we allow direct recursive types. https://todo.sr.ht/~icefox/garnetc/29 diff --git a/tests/programs/test_recursive_type.gt b/tests/programs/test_recursive_type.gt new file mode 100644 --- /dev/null +++ b/tests/programs/test_recursive_type.gt @@ -0,0 +1,16 @@ +-- Format: +-- status: success +-- Compile: +-- status: error + +--- TODO: Detect this and do something sensible about it. +type Foo = struct + x: I32, + y: I32, + z: Foo, +end + +fn main() {} = + {} +end +