diff options
| author | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-11-17 05:56:21 -0500 |
|---|---|---|
| committer | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-11-17 05:56:21 -0500 |
| commit | 2c192f7b69b89d4d7dc3367fe5a736c858643129 (patch) | |
| tree | 17028b3fdec6cbe15b00cebc97047d116fe4516e /tests | |
| parent | 2661d6f23fb419998d64fa968a885884146792cb (diff) | |
Fix hover type for proc calls wrapped in parens
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/hover_test.odin | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/hover_test.odin b/tests/hover_test.odin index ea27cc8..282ffb7 100644 --- a/tests/hover_test.odin +++ b/tests/hover_test.odin @@ -5689,6 +5689,20 @@ ast_hover_negate_function_call :: proc(t: ^testing.T) { } test.expect_hover(t, &source, "test.bar: bool") } + +@(test) +ast_hover_function_call_with_parens :: proc(t: ^testing.T) { + source := test.Source { + main = `package test + foo :: proc() -> bool {} + + main :: proc() { + b{*}ar := (foo()) + } + `, + } + test.expect_hover(t, &source, "test.bar: bool") +} /* Waiting for odin fix |