aboutsummaryrefslogtreecommitdiff
path: root/examples/option.ct
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2023-03-07 02:18:26 +0200
committerKimplul <kimi.h.kuparinen@gmail.com>2023-03-07 02:18:26 +0200
commitae5fee63f160643a397d18e9e0658275606bc4d4 (patch)
treef68af302374f9ae3c9dbb28dab5547036252d559 /examples/option.ct
downloadek-ae5fee63f160643a397d18e9e0658275606bc4d4.tar.gz
ek-ae5fee63f160643a397d18e9e0658275606bc4d4.zip
initial commit
Diffstat (limited to 'examples/option.ct')
-rw-r--r--examples/option.ct6
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/option.ct b/examples/option.ct
new file mode 100644
index 0000000..483a9ee
--- /dev/null
+++ b/examples/option.ct
@@ -0,0 +1,6 @@
+type t {any};
+
+struct option <t> {
+ u8 res;
+ t val;
+};