From 11111e5733b189127dc2c4934d67693b9bc6e764 Mon Sep 17 00:00:00 2001 From: Yong He Date: Wed, 6 Dec 2023 12:05:07 -0800 Subject: Support visibility control and default to `internal`. (#3380) * Support visibility control and default to `internal`. * Fix wip. * Fixes. * Fix. * Fix test. * Add legacy language detection and compatibility for existing code. * Add doc. --------- Co-authored-by: Yong He --- .../generics/struct-generic-value-param-import.slang | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/language-feature/generics') diff --git a/tests/language-feature/generics/struct-generic-value-param-import.slang b/tests/language-feature/generics/struct-generic-value-param-import.slang index edc1b0c39..785b8146f 100644 --- a/tests/language-feature/generics/struct-generic-value-param-import.slang +++ b/tests/language-feature/generics/struct-generic-value-param-import.slang @@ -6,13 +6,13 @@ // for `struct` decalrations in Slang files, including // any `import`ed code. -interface IData {} +public interface IData {} -struct Data : IData +public struct Data : IData { - int state; + public int state; - [mutating] void doStuff() + [mutating] public void doStuff() { state++; } -- cgit v1.2.3