aboutsummaryrefslogtreecommitdiff
path: root/tests/enums.ek
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2024-08-14 20:44:26 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2024-08-14 20:44:26 +0300
commit2023a7b2d9656f80b00de81453348c0a66f200f7 (patch)
tree06e4ea293318955cc4cf620428d04f1708c17364 /tests/enums.ek
parent1a56a881bc2c37614cfd074e7b986211c6d04809 (diff)
downloadek-2023a7b2d9656f80b00de81453348c0a66f200f7.tar.gz
ek-2023a7b2d9656f80b00de81453348c0a66f200f7.zip
test cleanup
+ Somewhat poor Git hygiene but I also fixed some bugs while I was at it.
Diffstat (limited to 'tests/enums.ek')
-rw-r--r--tests/enums.ek11
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/enums.ek b/tests/enums.ek
index 234bbd1..ef7850c 100644
--- a/tests/enums.ek
+++ b/tests/enums.ek
@@ -1,9 +1,17 @@
+typedef i27 {
+ add(i27 a, i27 b => i27) {
+ return a + b;
+ }
+};
+
+typedef i9 {};
+
enum A {
a = 200,
b
}
-enum B: u8 {
+enum B: i9 {
b, c
}
@@ -11,4 +19,5 @@ main()
{
const a = a::A;
const b = b::B;
+ const c = a.add(b as i27);
}