aboutsummaryrefslogtreecommitdiff
path: root/tests/ufcs.ek
diff options
context:
space:
mode:
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);
+}