aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-06-29 15:24:30 -0400
committerBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-06-29 15:29:58 -0400
commit069218700de8308862b87c35cc640cdce8f2b94b (patch)
tree4a1449050955a0c3c15557ee57c88d184216b018 /tests
parent5a8a0548b5f2b61b381912c20972b3872d8b0795 (diff)
Expand Struct_Type usings
Diffstat (limited to 'tests')
-rw-r--r--tests/completions_test.odin22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/completions_test.odin b/tests/completions_test.odin
index 2e078e8..2a3d7c2 100644
--- a/tests/completions_test.odin
+++ b/tests/completions_test.odin
@@ -3340,3 +3340,25 @@ ast_completion_struct_documentation :: proc(t: ^testing.T) {
test.expect_completion_details(t, &source, "", {"Foo.bazz: my_package.My_Struct // bazz"})
}
+
+@(test)
+ast_completion_inline_using :: proc(t: ^testing.T) {
+ source := test.Source {
+ main = `package main
+
+ Foo :: struct {
+ using _ : struct {
+ a: int,
+ b: int,
+ }
+ }
+
+ main :: proc() {
+ foo := Foo{}
+ foo.{*}
+ }
+ `,
+ }
+
+ test.expect_completion_details(t, &source, "", {"Foo.a: int", "Foo.b: int"})
+}