aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-11-13 04:05:46 -0500
committerBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-11-13 04:16:47 -0500
commitd806b5fe037de83a21d5a68d3e8f71a4b13d4b37 (patch)
tree6b4e408487934eaf2cdd2ca95234346defbd82d4 /tests
parentb2efc8f7789d2e51259d8d37da7bf59182b185fc (diff)
Add docs for local value decls
Diffstat (limited to 'tests')
-rw-r--r--tests/hover_test.odin13
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