From 9ca1d0c763e1c506ae7b43d50db225914b709397 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Thu, 16 Jan 2025 00:21:02 +0200 Subject: more strict trait checking --- tests/struct_priv_trait_cont/struct.ek | 4 ++-- tests/struct_priv_trait_cont/struct_priv_trait_cont.ek | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/struct_priv_trait_cont') diff --git a/tests/struct_priv_trait_cont/struct.ek b/tests/struct_priv_trait_cont/struct.ek index 6c94aaa..b790dd4 100644 --- a/tests/struct_priv_trait_cont/struct.ek +++ b/tests/struct_priv_trait_cont/struct.ek @@ -1,13 +1,13 @@ pub typedef ptr {}; pub typedef i27 {}; -pub define trait[] { +pub define trait { do_something(=> i27); } pub typedef implementer {} continue implementer { - trait![]; + trait!; do_something(=> i27) { return 0; diff --git a/tests/struct_priv_trait_cont/struct_priv_trait_cont.ek b/tests/struct_priv_trait_cont/struct_priv_trait_cont.ek index cd67050..7fb7e12 100644 --- a/tests/struct_priv_trait_cont/struct_priv_trait_cont.ek +++ b/tests/struct_priv_trait_cont/struct_priv_trait_cont.ek @@ -12,7 +12,7 @@ import "struct.ek" * by the codegen. Should maybe try and do something about that as well. */ continue implementer { - trait![]; + trait!; do_something(=> i27) { return 1; -- cgit v1.3