diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-09-11 01:48:15 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-09-11 01:48:15 -0400 |
| commit | 989dc3f4428fd3185753336cb91baf48e0c85ad0 (patch) | |
| tree | 15eb26b7161f9953039f98625a42f7c68c688c86 /test | |
| parent | 23209a0aab983501701c62ac87c891309a7d3d58 (diff) | |
Support `if x := blah: ...`
Diffstat (limited to 'test')
| -rw-r--r-- | test/optionals.tm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/optionals.tm b/test/optionals.tm index d8cbf741..8e24f66d 100644 --- a/test/optionals.tm +++ b/test/optionals.tm @@ -121,3 +121,8 @@ func main(): fail("Truthy: $nope") else: !! Falsey: $nope + + if yep := maybe_int(yes): + >> yep + = 123 : Int + else: fail("Unreachable") |
