From ec0224edc3a867bbf059e790ad7b2a1a881a0705 Mon Sep 17 00:00:00 2001 From: Yong He Date: Mon, 11 Dec 2023 16:13:32 -0800 Subject: Diagnose for invalid decl nesting + namespace lookup fixes. (#3397) * Diagnose for invalid decl nesting. * Fix. * Fix. * Fix. * Fix `namespace` lookup and `using` resolution. * fix project files. * revert project files. * Enhance namespace syntax, docs. * Fixes. --------- Co-authored-by: Yong He --- tests/language-feature/namespaces/namespace-include/b.slang | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 tests/language-feature/namespaces/namespace-include/b.slang (limited to 'tests/language-feature/namespaces/namespace-include/b.slang') diff --git a/tests/language-feature/namespaces/namespace-include/b.slang b/tests/language-feature/namespaces/namespace-include/b.slang new file mode 100644 index 000000000..95f8b388a --- /dev/null +++ b/tests/language-feature/namespaces/namespace-include/b.slang @@ -0,0 +1,11 @@ +implementing a; + +import m; + +namespace ns1 +{ +namespace ns2 +{ + int k() { return f() + g(); } // should be able to find ns1::ns2::f in m. +} +} -- cgit v1.2.3