diff options
| author | Thomas Voss <mail@thomasvoss.com> | 2026-03-29 23:09:46 +0200 |
|---|---|---|
| committer | Thomas Voss <mail@thomasvoss.com> | 2026-03-29 23:09:46 +0200 |
| commit | da65ee39162d0323321340b2a9cef9a013ad36ef (patch) | |
| tree | 127f6afd6bb418c5df3216e1ad83239aa693ef77 /test2.yx | |
| parent | db11ea02d777a33fedb6af4ee056e85f52fbb008 (diff) | |
Beginning sema work
Diffstat (limited to 'test2.yx')
| -rw-r--r-- | test2.yx | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/test2.yx b/test2.yx new file mode 100644 index 0000000..5012927 --- /dev/null +++ b/test2.yx @@ -0,0 +1,25 @@ +def rgb = func() (u8, u8, u8) { + ; + ; + def r = #xFF; + def g, b u8 = #xFF, #xFF; + return r, g, b; +}; + +def something2 = something; +def something = my_int; + +def rgba = func() (u8, u8, u8, u8) { + return rgb(), #xFF; +}; + +def zoë, bar = 42, 69; + +def main_1 = func() (int, int) { return zoë, bar; }; + +def main = func() (u16, u16) { + rgba(); + return zoë, bar; +}; + +def my_int = "hi"; |