diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-04-30 13:18:47 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-04-30 13:18:47 -0400 |
| commit | 2e27b88c1b9fa8ec9b9f243909f5b793b376f207 (patch) | |
| tree | f70433489c8a1fbf3bae6bf4cce364f6bdf8c9f7 /test | |
| parent | 3c0a8f0b899a343f43caf9c95147b2cf77a7b525 (diff) | |
Improved syntax for optionals
Diffstat (limited to 'test')
| -rw-r--r-- | test/structs.tm | 2 | ||||
| -rw-r--r-- | test/tables.tm | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/test/structs.tm b/test/structs.tm index 840ee847..ad8e7ad6 100644 --- a/test/structs.tm +++ b/test/structs.tm @@ -1,7 +1,7 @@ struct Pair(x,y:Int) struct Mixed(x:Int, text:Text) -struct LinkedList(x:Int, next=!LinkedList) +struct LinkedList(x:Int, next=!@LinkedList) struct Password(text:Text; secret) func test_literals(): diff --git a/test/tables.tm b/test/tables.tm index 8609e522..4c61bb77 100644 --- a/test/tables.tm +++ b/test/tables.tm @@ -18,7 +18,7 @@ func main(): >> #t = 2 >> t.default - = ?%999 + = @%999? >> t.fallback = !{Text:Int} @@ -42,7 +42,7 @@ func main(): >> t2.default = !Int >> t2.fallback - = ?%{"one":1, "two":2; default=999} + = @%{"one":1, "two":2; default=999}? t2_str := "" for k,v in t2: |
