From 90573ba7a15bb47a11c1eb6f69ed04c01b69724d Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 19 Nov 2024 15:45:33 -0500 Subject: Tweak behavior for printing recursive structures --- test/structs.tm | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test') diff --git a/test/structs.tm b/test/structs.tm index d68bbe8b..d4b0a87e 100644 --- a/test/structs.tm +++ b/test/structs.tm @@ -55,10 +55,18 @@ func test_mixed(): >> set:has(y) = no +func test_text(): + >> b := @CorecursiveB() + >> a := @CorecursiveA(b) + >> b.other = a + >> a + = @CorecursiveA(@CorecursiveB(@~1?)?) + func main(): test_literals() test_metamethods() test_mixed() + test_text() >> @LinkedList(10, @LinkedList(20)) -- cgit v1.2.3