aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-07-19 15:46:55 -0400
committerBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-07-22 18:48:22 -0400
commit4eda03d0564acbbd577edb54183f4443fbdd0e94 (patch)
tree14cb81c9595722d407f6b277f4976cfd8b99aabf /tests
parent01dd0ca11f34a58c9470ed377142da4a144631f2 (diff)
Add proc calling convention to hover information
Diffstat (limited to 'tests')
-rw-r--r--tests/hover_test.odin10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/hover_test.odin b/tests/hover_test.odin
index dc31880..df7aeae 100644
--- a/tests/hover_test.odin
+++ b/tests/hover_test.odin
@@ -2793,6 +2793,16 @@ ast_hover_overloading_struct_with_usings_with_pointers :: proc(t: ^testing.T) {
}
test.expect_hover(t, &source, "test.foobar: proc(b: ^Bar)")
}
+
+@(test)
+ast_hover_proc_calling_convention :: proc(t: ^testing.T) {
+ source := test.Source {
+ main = `package test
+ f{*}oo :: proc "contextless" (a: int) {}
+ `,
+ }
+ test.expect_hover(t, &source, "test.foo: proc \"contextless\" (a: int)")
+}
/*
Waiting for odin fix