diff options
| author | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-06-29 15:24:30 -0400 |
|---|---|---|
| committer | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-06-29 15:29:58 -0400 |
| commit | 069218700de8308862b87c35cc640cdce8f2b94b (patch) | |
| tree | 4a1449050955a0c3c15557ee57c88d184216b018 /tests | |
| parent | 5a8a0548b5f2b61b381912c20972b3872d8b0795 (diff) | |
Expand Struct_Type usings
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/completions_test.odin | 22 |
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"}) +} |