From 164625327bd057141edf84339d4b43b2a8e2de24 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Mon, 13 Jan 2025 09:15:11 +0200 Subject: require that continuations have same publicity --- tests/struct_pub_generic_cont/struct.ek | 2 +- tests/struct_pub_generic_cont/struct_pub_generic_cont.ek | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) (limited to 'tests/struct_pub_generic_cont') diff --git a/tests/struct_pub_generic_cont/struct.ek b/tests/struct_pub_generic_cont/struct.ek index 85f1711..5abbe38 100644 --- a/tests/struct_pub_generic_cont/struct.ek +++ b/tests/struct_pub_generic_cont/struct.ek @@ -3,7 +3,7 @@ pub typedef i27 {} pub typedef struct[any T] {} /* private definition of some function */ -continue struct[any T] { +pub continue struct[any T] { do_something(){} } diff --git a/tests/struct_pub_generic_cont/struct_pub_generic_cont.ek b/tests/struct_pub_generic_cont/struct_pub_generic_cont.ek index 905bdf9..1712669 100644 --- a/tests/struct_pub_generic_cont/struct_pub_generic_cont.ek +++ b/tests/struct_pub_generic_cont/struct_pub_generic_cont.ek @@ -1,13 +1,8 @@ import "struct.ek" -continue struct[any T] { - do_something(){} -} - main() { mut p = struct![i27]{}; - /* should be different from do_something() defined in struct.ek */ p.do_something(); some_func(); -- cgit v1.3