aboutsummaryrefslogtreecommitdiff
path: root/test/optionals.tm
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-09-12 00:13:53 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-09-12 00:13:53 -0400
commitfa7e52787f81f3673f9d57e9e4ba7fc015ca8432 (patch)
treef184ad44625d04d1bf80af8e83f4512124b3ff2f /test/optionals.tm
parent8e300312a077421477fdeb6453f625461799ffc0 (diff)
Add postfix `!` operator for optionals
Diffstat (limited to 'test/optionals.tm')
-rw-r--r--test/optionals.tm3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/optionals.tm b/test/optionals.tm
index 26e825ae..c0c600a7 100644
--- a/test/optionals.tm
+++ b/test/optionals.tm
@@ -271,3 +271,6 @@ func main():
>> yep
= 123 : Int
else: fail("Unreachable")
+
+ >> maybe_int(yes)!
+ = 123 : Int