aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBrad Lewis <22850972+BradLewis@users.noreply.github.com>2026-02-06 16:21:12 +1100
committerBrad Lewis <22850972+BradLewis@users.noreply.github.com>2026-02-06 16:21:12 +1100
commitc95e8dff960840599d1cf87f330a5fa2cbfa99b1 (patch)
tree66142842e36118f3876dbcb29f05dedb055640bf /tests
parent68f7e739157f84c70d368c55d55f4996a61008e9 (diff)
Fix hover info for constant unary exprs
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 630f4d7..02cde4e 100644
--- a/tests/hover_test.odin
+++ b/tests/hover_test.odin
@@ -6024,6 +6024,16 @@ ast_hover_proc_poly_params_where_clause :: proc(t: ^testing.T) {
}
test.expect_hover(t, &source, "test.$T: int")
}
+
+@(test)
+ast_hover_constant_unary_expr :: proc(t: ^testing.T) {
+ source := test.Source {
+ main = `package test
+ F{*}OO :: ~u32(0)
+ `,
+ }
+ test.expect_hover(t, &source, "test.FOO :: ~u32(0)")
+}
/*
Waiting for odin fix