From cc0b46b2f8d1fa0fa3c888d08efb3e54f8ecfc6e Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Fri, 16 Jan 2026 19:04:01 +0100 Subject: chore: update and improve Nectar codegen. Signed-off-by: Amlal El Mahrouss --- test/test_samples/test_ostream.ncpp | 4 ++-- test/test_samples/test_struct.ncpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'test') diff --git a/test/test_samples/test_ostream.ncpp b/test/test_samples/test_ostream.ncpp index afed25d..3caa2ab 100644 --- a/test/test_samples/test_ostream.ncpp +++ b/test/test_samples/test_ostream.ncpp @@ -2,8 +2,8 @@ let main() { - let io := {}; - io := ostream(); + let io := 0; + io := ostream{}; let arr := io.read(0, 0); return arr[0]; } \ No newline at end of file diff --git a/test/test_samples/test_struct.ncpp b/test/test_samples/test_struct.ncpp index 5006a01..c725b64 100644 --- a/test/test_samples/test_struct.ncpp +++ b/test/test_samples/test_struct.ncpp @@ -1,6 +1,6 @@ impl foo { - foo() + let init() { return; } @@ -14,7 +14,7 @@ impl foo let construct_foo() { let io := new; - io := foo(); + io := foo{}; return io; } -- cgit v1.2.3