Add test for importing initialized values

This commit is contained in:
Bruce Hill 2024-08-19 00:53:28 -04:00
parent c422806d87
commit 70d6a18f59
2 changed files with 5 additions and 0 deletions

View File

@ -7,3 +7,6 @@ func main():
>> [:imported.ImportedType]
>> asdf()
= ImportedType(name="Hello")
>> imported.needs_initializing
= 999999999999999999

View File

@ -1,5 +1,7 @@
struct ImportedType(name:Text)
needs_initializing := 999999999999999999
func get_value()->ImportedType:
return ImportedType("Hello")