aboutsummaryrefslogtreecommitdiff
path: root/tests/hover_test.odin
diff options
context:
space:
mode:
authorBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-08-18 08:46:46 -0400
committerBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-08-18 08:46:46 -0400
commitea5f0c47438a85c8a517788c79e27f568af54121 (patch)
tree64bea2154c7962e557cee466eab0baeb08cf0d34 /tests/hover_test.odin
parent6d12396da33352a47aa821b48e51512c3601b124 (diff)
Correct check for mutable locals when parsing non mutable only
Diffstat (limited to 'tests/hover_test.odin')
-rw-r--r--tests/hover_test.odin15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/hover_test.odin b/tests/hover_test.odin
index 7301a7e..16bbf69 100644
--- a/tests/hover_test.odin
+++ b/tests/hover_test.odin
@@ -4246,6 +4246,21 @@ ast_hover_soa_pointer_field :: proc(t: ^testing.T) {
}
test.expect_hover(t, &source, "Foo.x: int")
}
+
+@(test)
+ast_hover_proc_within_for_loop :: proc(t: ^testing.T) {
+ source := test.Source {
+ main = `package test
+
+ main :: proc() {
+ for true {
+ f{*}oo :: proc() {}
+ }
+ }
+ `,
+ }
+ test.expect_hover(t, &source, "test.foo: proc()")
+}
/*
Waiting for odin fix