aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-09-11 01:48:15 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-09-11 01:48:15 -0400
commit989dc3f4428fd3185753336cb91baf48e0c85ad0 (patch)
tree15eb26b7161f9953039f98625a42f7c68c688c86 /test
parent23209a0aab983501701c62ac87c891309a7d3d58 (diff)
Support `if x := blah: ...`
Diffstat (limited to 'test')
-rw-r--r--test/optionals.tm5
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")