aboutsummaryrefslogtreecommitdiff
path: root/src/main.ha
diff options
context:
space:
mode:
authoreug-vs <eugene@eug-vs.xyz>2023-06-26 20:01:36 +0300
committereug-vs <eugene@eug-vs.xyz>2023-06-26 20:01:36 +0300
commit72761f770a73e3e8fac9b57043ed19f084bfb230 (patch)
treebc482dc87dfbddd4cd9a71461d37e9dde41cfb45 /src/main.ha
parentc3474b1481a02baefda1abe286d4fbef39597bce (diff)
downloadj1chess-72761f770a73e3e8fac9b57043ed19f084bfb230.tar.gz
tmp: save progress from @black-pearltmp
Diffstat (limited to 'src/main.ha')
-rw-r--r--src/main.ha11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/main.ha b/src/main.ha
new file mode 100644
index 0000000..492f179
--- /dev/null
+++ b/src/main.ha
@@ -0,0 +1,11 @@
+use fmt;
+
+export fn main() void = {
+ fmt::println("Hello world!")!;
+ let a: u64 = 123;
+};
+
+@test fn testWtf() void = {
+ assert(1 == 0, "Failed");
+ fmt::println("Test wtf")!;
+};