diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-04-09 18:23:33 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-04-09 18:23:33 +0300 |
| commit | eda6bcd42128a3e555c99a68f5b31c7e85518fe5 (patch) | |
| tree | a83376bdf90b0e2f30297e5af24210af99f2b36b /tests/ufcs.ek | |
| parent | 451111dc51df69580d04c9965f70531f50e3d509 (diff) | |
| download | ek-eda6bcd42128a3e555c99a68f5b31c7e85518fe5.tar.gz ek-eda6bcd42128a3e555c99a68f5b31c7e85518fe5.zip | |
improve struct handling
Diffstat (limited to 'tests/ufcs.ek')
| -rw-r--r-- | tests/ufcs.ek | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ufcs.ek b/tests/ufcs.ek new file mode 100644 index 0000000..85d241b --- /dev/null +++ b/tests/ufcs.ek @@ -0,0 +1,11 @@ +typedef i27 { + add(*i27 self, i27 other => i27) + { + return self* + other; + } +} + +main() +{ + i27 a = 12.add(24); +} |
