aboutsummaryrefslogtreecommitdiff
path: root/test/import.tm
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-04-06 19:20:07 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-04-06 19:20:07 -0400
commit1d2e55f53dfab5153dbfd0c03f28cd9daedb3b77 (patch)
treeaa1c21191800467abe0b3d16cb6c2a0c2e4587f9 /test/import.tm
parentbc93dea8186168aa015b05a615bc1873173393b5 (diff)
Allow uninitialized variables when there's a sensible empty value
(defaults to empty/zero value)
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 a6a6fa16..0686190b 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()
- >> empty : [vectors.Vec2] = []
+ >> empty : [vectors.Vec2]
>> returns_vec()
= Vec2(x=1, y=2)
- >> imported : [ImportedType] = []
+ >> imported : [ImportedType]
>> returns_imported_type()
= ImportedType("Hello")