diff options
| author | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-11-13 04:05:46 -0500 |
|---|---|---|
| committer | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-11-13 04:16:47 -0500 |
| commit | d806b5fe037de83a21d5a68d3e8f71a4b13d4b37 (patch) | |
| tree | 6b4e408487934eaf2cdd2ca95234346defbd82d4 /tests | |
| parent | b2efc8f7789d2e51259d8d37da7bf59182b185fc (diff) | |
Add docs for local value decls
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/hover_test.odin | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/hover_test.odin b/tests/hover_test.odin index 8a41efc..6ecfbd9 100644 --- a/tests/hover_test.odin +++ b/tests/hover_test.odin @@ -5599,6 +5599,19 @@ ast_hover_index_function_call :: proc(t: ^testing.T) { } test.expect_hover(t, &source, "test.x: int") } + +@(test) +ast_hover_local_proc_docs :: proc(t: ^testing.T) { + source := test.Source { + main = `package test + main :: proc() { + // foo doc + f{*}oo :: proc() {} + } + `, + } + test.expect_hover(t, &source, "test.foo :: proc()\n foo doc") +} /* Waiting for odin fix |