summaryrefslogtreecommitdiffhomepage
path: root/test/test_samples/test_struct.ncpp
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2026-01-16 19:04:01 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2026-01-16 19:04:01 +0100
commitcc0b46b2f8d1fa0fa3c888d08efb3e54f8ecfc6e (patch)
tree4344d2a8f91682a064a6ccbc43e7db9fb65b64c0 /test/test_samples/test_struct.ncpp
parent38e21d3cd9409d583c627fb9bd401db5dcbd6981 (diff)
chore: update and improve Nectar codegen.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'test/test_samples/test_struct.ncpp')
-rw-r--r--test/test_samples/test_struct.ncpp4
1 files changed, 2 insertions, 2 deletions
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;
}