aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-07-19 09:13:13 -0400
committerBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-07-19 09:19:45 -0400
commitbeeef74c3b73e1aced5de53d1b6102e1872fa164 (patch)
treeac08de764ad7a655f61512a1f6d996c920916aa0 /tests
parent0ab1503c0460e41856b113ed641d1c843282cc83 (diff)
Add hover information for where clause variables
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 f6c7c45..65676f1 100644
--- a/tests/hover_test.odin
+++ b/tests/hover_test.odin
@@ -2636,6 +2636,19 @@ ast_hover_named_parameter_with_default_value_struct :: proc(t: ^testing.T) {
}
test.expect_hover(t, &source, "foo.a: test.Bar :: struct {\n\tbar: int,\n}")
}
+
+@(test)
+ast_hover_inside_where_clause :: proc(t: ^testing.T) {
+ source := test.Source {
+ main = `package test
+ foo :: proc(x: [2]int)
+ where len(x) > 1,
+ type_of(x{*}) == [2]int {
+ }
+ `,
+ }
+ test.expect_hover(t, &source, "test.x: [2]int")
+}
/*
Waiting for odin fix