From 43f4f3610e5258afbfb9e313c989e1e52f477c38 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Thu, 12 Sep 2024 04:09:52 -0400 Subject: For single-member structs/enums, don't print the member name --- test/structs.tm | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test/structs.tm') diff --git a/test/structs.tm b/test/structs.tm index 53d356f5..d68bbe8b 100644 --- a/test/structs.tm +++ b/test/structs.tm @@ -1,4 +1,5 @@ +struct Single(x:Int) struct Pair(x,y:Int) struct Mixed(x:Int, text:Text) struct LinkedList(x:Int, next=!@LinkedList) @@ -8,6 +9,8 @@ struct CorecursiveA(other:@CorecursiveB?) struct CorecursiveB(other=!@CorecursiveA) func test_literals(): + >> Single(123) + = Single(123) >> x := Pair(10, 20) = Pair(x=10, y=20) >> y := Pair(y=20, 10) -- cgit v1.2.3