diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-11-05 15:18:32 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-11-05 15:18:32 -0500 |
| commit | b8d7eabc023bf9db0150049d8e909086f6ad91bc (patch) | |
| tree | 5b678c7949638b3f07095affc04611f0422ef8c7 /test/optionals.tm | |
| parent | 2fa26e6af3ec1599396d9260ef44b0d035b1f686 (diff) | |
Deprecate bit-width integer/num literals in favor of using type
constructors
Diffstat (limited to 'test/optionals.tm')
| -rw-r--r-- | test/optionals.tm | 6 |
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") |
