diff options
| author | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-08-17 08:10:00 -0400 |
|---|---|---|
| committer | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-08-17 08:10:00 -0400 |
| commit | eedf03421e07933cdfd2e0185ab815439f4faf57 (patch) | |
| tree | 6dfa28bc46512a96ed6f1cb745f03ebe5e30b124 /tests/hover_test.odin | |
| parent | a89290006f45ff0caf9ea767ee476508d76f7398 (diff) | |
Add `Matrix_Type` to build string node
Diffstat (limited to 'tests/hover_test.odin')
| -rw-r--r-- | tests/hover_test.odin | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/hover_test.odin b/tests/hover_test.odin index 7f209b0..7da1b46 100644 --- a/tests/hover_test.odin +++ b/tests/hover_test.odin @@ -4019,6 +4019,23 @@ ast_hover_map_empty_struct_literal :: proc(t: ^testing.T) { } test.expect_hover(t, &source, "test.m: map[int]struct {}") } + +@(test) +ast_hover_struct_container_fields :: proc(t: ^testing.T) { + source := test.Source { + main = `package test + F{*}oo :: struct { + foo_slice: []int, + foo_dynamic: [dynamic]int, + foo_array: [5]int, + foo_map: map[int]int, + foo_matrix: matrix[3,4]int, + } + `, + } + test.expect_hover(t, &source, "test.Foo: struct {\n\tfoo_slice: []int,\n\tfoo_dynamic: [dynamic]int,\n\tfoo_array: [5]int,\n\tfoo_map: map[int]int,\n\tfoo_matrix: matrix[3,4]int,\n}") +} + /* Waiting for odin fix |