diff options
| author | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-08-18 08:46:46 -0400 |
|---|---|---|
| committer | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-08-18 08:46:46 -0400 |
| commit | ea5f0c47438a85c8a517788c79e27f568af54121 (patch) | |
| tree | 64bea2154c7962e557cee466eab0baeb08cf0d34 /tests/hover_test.odin | |
| parent | 6d12396da33352a47aa821b48e51512c3601b124 (diff) | |
Correct check for mutable locals when parsing non mutable only
Diffstat (limited to 'tests/hover_test.odin')
| -rw-r--r-- | tests/hover_test.odin | 15 |
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 |