From 0340db806dbf5e27727101224f096e0ac086097d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juli=C3=A1n=20Gonz=C3=A1lez=20Calder=C3=B3n?= Date: Tue, 7 May 2024 14:18:56 -0300 Subject: [PATCH] Add constant example --- examples/constants.con | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 examples/constants.con diff --git a/examples/constants.con b/examples/constants.con new file mode 100644 index 0000000..21b0bbd --- /dev/null +++ b/examples/constants.con @@ -0,0 +1,7 @@ +mod Example { + const foo: i32 = 10; + + fn main() -> i32 { + return foo; + } +}