aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-09-17 19:20:48 -0400
committerBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-09-21 08:55:41 -0400
commita498379ca16e1e0fc344c654a7e24710f8be77b6 (patch)
tree2f76bcce5da9cbb02c8f3413551678b7210e1336 /tests
parenta79efd27be8e6951aaa5b7e4bd785121e857c32c (diff)
Try to display value for const global variables
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 323fe81..6800556 100644
--- a/tests/hover_test.odin
+++ b/tests/hover_test.odin
@@ -4864,6 +4864,16 @@ ast_hover_simd_array_pointer :: proc(t: ^testing.T) {
}
test.expect_hover(t, &source, "test.foo: ^#simd[4]f32")
}
+
+@(test)
+ast_hover_const_untyped_value :: proc(t: ^testing.T) {
+ source := test.Source {
+ main = `package test
+ F{*}OO :: 123
+ `,
+ }
+ test.expect_hover(t, &source, "test.FOO :: 123")
+}
/*
Waiting for odin fix