diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-10-09 13:26:28 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-10-09 13:26:28 -0400 |
| commit | 074cf22ad462eafe963e4a749b2b74cab51211a1 (patch) | |
| tree | e1d7f938f2d949cc5dcf67ca648f200663e36562 /test/import.tm | |
| parent | 47fca946065508cff4151a32b3008c161983fd9d (diff) | |
Change function syntax from `func(args)->ret` to `func(args -> ret)`
Diffstat (limited to 'test/import.tm')
| -rw-r--r-- | test/import.tm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/import.tm b/test/import.tm index 9362e085..a7b198b9 100644 --- a/test/import.tm +++ b/test/import.tm @@ -1,10 +1,10 @@ vectors := use ../examples/vectors/vectors.tm use ./use_import.tm -func returns_vec()->vectors.Vec2: +func returns_vec(->vectors.Vec2): return vectors.Vec2(1, 2) -func returns_imported_type()->ImportedType: +func returns_imported_type(->ImportedType): return get_value() # Imported from ./use_import.tm func main(): |
