From 671853287a22fb950a4c03e11ff8d676f2b5190d Mon Sep 17 00:00:00 2001 From: Krzosa Karol Date: Mon, 30 May 2022 11:10:27 +0200 Subject: [PATCH] Fix bug with indexing function call --- lambdas.kl | 9 ++++++++- main.cpp | 1 + 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/lambdas.kl b/lambdas.kl index 9b4c3ea..2d1d521 100644 --- a/lambdas.kl +++ b/lambdas.kl @@ -24,7 +24,14 @@ add_10 :: (size: int): int return a + b constant :: 20; result := constant + 10 - return add(a = 20) + + v5 := add([0] = 1, [1] = 2) + v1 := add(a = 1) + v2 := add(a = 1, b = 2) + v3 := add([0] = 1) + v4 := add(b = 1, a = 2) + + return v3 return_constant :: (): int constant :: 10 diff --git a/main.cpp b/main.cpp index fffca1e..31052da 100644 --- a/main.cpp +++ b/main.cpp @@ -51,6 +51,7 @@ int main(){ + test_os_memory(); thread_ctx_init(); test_unicode();