aboutsummaryrefslogtreecommitdiff
path: root/test/import.tm
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-04-04 17:06:09 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-04-04 17:06:09 -0400
commit0b8074154e2671691050bdb3bcb33245625a056c (patch)
tree1410e0c4e05c6372e876cd08f16d117e12868f41 /test/import.tm
parentfadcb45baf1274e06cfe37b87655b9146aa52874 (diff)
First working compile of refactor to add explicit typing to declarations
and support untyped empty collections and `none`s
Diffstat (limited to 'test/import.tm')
-rw-r--r--test/import.tm4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/import.tm b/test/import.tm
index a7b198b9..960bfcbb 100644
--- a/test/import.tm
+++ b/test/import.tm
@@ -8,11 +8,11 @@ func returns_imported_type(->ImportedType):
return get_value() # Imported from ./use_import.tm
func main():
- >> [:vectors.Vec2]
+ >> empty : [vectors.Vec2] = []
>> returns_vec()
= Vec2(x=1, y=2)
- >> [:ImportedType]
+ >> imported : [ImportedType] = []
>> returns_imported_type()
= ImportedType("Hello")