From b1ad4a1c280d25f92fdb1103edf2faa5e3e1daac Mon Sep 17 00:00:00 2001 From: Nic Gaffney Date: Tue, 13 Aug 2024 17:28:34 -0500 Subject: Added type checking on function calls --- examples/helloWorld.nya | 6 ++++++ examples/test.nya | 6 ------ 2 files changed, 6 insertions(+), 6 deletions(-) create mode 100644 examples/helloWorld.nya delete mode 100644 examples/test.nya (limited to 'examples') diff --git a/examples/helloWorld.nya b/examples/helloWorld.nya new file mode 100644 index 0000000..0b8c59b --- /dev/null +++ b/examples/helloWorld.nya @@ -0,0 +1,6 @@ +import fn puts(str: [u8]) -> i32; + +fn main(argc: i32) -> i32 { + puts("Hello World!"); + return 0; +} diff --git a/examples/test.nya b/examples/test.nya deleted file mode 100644 index 0b8c59b..0000000 --- a/examples/test.nya +++ /dev/null @@ -1,6 +0,0 @@ -import fn puts(str: [u8]) -> i32; - -fn main(argc: i32) -> i32 { - puts("Hello World!"); - return 0; -} -- cgit v1.2.3