diff options
| author | Nic Gaffney <gaffney_nic@protonmail.com> | 2024-08-16 00:21:00 -0500 |
|---|---|---|
| committer | Nic Gaffney <gaffney_nic@protonmail.com> | 2024-08-16 00:21:00 -0500 |
| commit | f1a2e03047c31ca57ca2d79f94f0ae179f0110e2 (patch) | |
| tree | 1a2ac762632373550d621f9ed85ff5e0b925b00f /examples | |
| parent | 760a9246618862b56bafe3dd5d95a77fdd668a6c (diff) | |
| download | calico-f1a2e03047c31ca57ca2d79f94f0ae179f0110e2.tar.gz | |
Added type checking to assignments. Types required for varbl now.
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/helloWorld.nya | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/examples/helloWorld.nya b/examples/helloWorld.nya index 160d9d2..625860c 100644 --- a/examples/helloWorld.nya +++ b/examples/helloWorld.nya @@ -1,6 +1,8 @@ import fn puts(str: [u8]) -> i32; fn main() -> i32 { - puts("Hello World!"); - return 0; + varbl: i32 pog = puts("Hello World!"); + pog = 8; + const value = pog; + return value; } |
