aboutsummaryrefslogtreecommitdiff
path: root/tests/ufcs.ek
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2024-04-09 18:23:33 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2024-04-09 18:23:33 +0300
commiteda6bcd42128a3e555c99a68f5b31c7e85518fe5 (patch)
treea83376bdf90b0e2f30297e5af24210af99f2b36b /tests/ufcs.ek
parent451111dc51df69580d04c9965f70531f50e3d509 (diff)
downloadek-eda6bcd42128a3e555c99a68f5b31c7e85518fe5.tar.gz
ek-eda6bcd42128a3e555c99a68f5b31c7e85518fe5.zip
improve struct handling
Diffstat (limited to 'tests/ufcs.ek')
-rw-r--r--tests/ufcs.ek11
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);
+}