diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-08-19 00:53:28 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-08-19 00:53:28 -0400 |
| commit | 70d6a18f59548a96f6bf7080d637c0f1f7519b2a (patch) | |
| tree | f0cf0b6d3a7d37a1fd4499c1d1d0d54577b5bd7a | |
| parent | c422806d87579a2cf9ea822e9a9c68048520dd69 (diff) | |
Add test for importing initialized values
| -rw-r--r-- | test/import.tm | 3 | ||||
| -rw-r--r-- | test/use_import.tm | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/test/import.tm b/test/import.tm index 58f4e451..c84e18e0 100644 --- a/test/import.tm +++ b/test/import.tm @@ -7,3 +7,6 @@ func main(): >> [:imported.ImportedType] >> asdf() = ImportedType(name="Hello") + + >> imported.needs_initializing + = 999999999999999999 diff --git a/test/use_import.tm b/test/use_import.tm index 3b8e6743..979256bb 100644 --- a/test/use_import.tm +++ b/test/use_import.tm @@ -1,5 +1,7 @@ struct ImportedType(name:Text) +needs_initializing := 999999999999999999 + func get_value()->ImportedType: return ImportedType("Hello") |
