diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-04-28 14:58:55 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-04-28 14:58:55 -0400 |
| commit | 3c0a8f0b899a343f43caf9c95147b2cf77a7b525 (patch) | |
| tree | b7193a8021ef9ab57c71319ecad797bf51849025 /test/enums.tm | |
| parent | 5910998a19aab5dab2c761aea946cfbb09a37918 (diff) | |
Syntax tweak: use ':' for blocks
Diffstat (limited to 'test/enums.tm')
| -rw-r--r-- | test/enums.tm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/enums.tm b/test/enums.tm index c06862a3..1bc26203 100644 --- a/test/enums.tm +++ b/test/enums.tm @@ -1,6 +1,6 @@ enum Foo(Zero, One(x:Int), Two(x,y:Int)) -func main() +func main(): >> Foo.Zero = Foo.Zero >> Foo.One(123) @@ -27,9 +27,9 @@ func main() >> t[Foo.Zero] = "missing" - when x is o:One + when x is o:One: >> o.x = 123 - else + else: fail("Oops") |
