aboutsummaryrefslogtreecommitdiff
path: root/test/optionals.tm
diff options
context:
space:
mode:
Diffstat (limited to 'test/optionals.tm')
-rw-r--r--test/optionals.tm6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/optionals.tm b/test/optionals.tm
index 612ab76b..cf9284e1 100644
--- a/test/optionals.tm
+++ b/test/optionals.tm
@@ -21,7 +21,7 @@ func maybe_int(should_i:Bool->Int?):
func maybe_int64(should_i:Bool->Int64?):
if should_i:
- return 123[64]
+ return Int64(123)
else:
return !Int64
@@ -113,12 +113,12 @@ func main():
!! ...
!! Int64s:
>> yep := maybe_int64(yes)
- = 123[64]?
+ = Int64(123)?
>> nope := maybe_int64(no)
= !Int64
>> if yep:
>> yep
- = 123[64]
+ = Int64(123)
else: fail("Falsey: $yep")
>> if nope:
fail("Truthy: $nope")