aboutsummaryrefslogtreecommitdiff
path: root/tests/hover_test.odin
diff options
context:
space:
mode:
Diffstat (limited to 'tests/hover_test.odin')
-rw-r--r--tests/hover_test.odin14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/hover_test.odin b/tests/hover_test.odin
index a24f448..52dca76 100644
--- a/tests/hover_test.odin
+++ b/tests/hover_test.odin
@@ -5628,6 +5628,20 @@ ast_hover_struct_using_with_parentheses :: proc(t: ^testing.T) {
}
test.expect_hover(t, &source, "Foo.a: int")
}
+
+@(test)
+ast_hover_named_proc_arg_hover :: proc(t: ^testing.T) {
+ source := test.Source {
+ main = `package test
+ foo :: proc(bar: f32) {}
+
+ main :: proc() {
+ foo(b{*}ar=42)
+ }
+ `,
+ }
+ test.expect_hover(t, &source, "foo.bar: f32")
+}
/*
Waiting for odin fix