diff options
| author | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-11-13 15:51:53 -0500 |
|---|---|---|
| committer | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-11-13 15:51:53 -0500 |
| commit | 72cdc7e38a57782209148a6dbf6f6e1aa2598916 (patch) | |
| tree | 12f43e94d47f43ad9cfbd73aec30c6f4aa5f8f23 /tests | |
| parent | dd4ff896dbd188762bcadede367552544d08a860 (diff) | |
Fix resolving named call arg types at call site
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 a24f448..52dca76 100644 --- a/tests/hover_test.odin +++ b/tests/hover_test.odin @@ -5628,6 +5628,20 @@ ast_hover_struct_using_with_parentheses :: proc(t: ^testing.T) { } test.expect_hover(t, &source, "Foo.a: int") } + +@(test) +ast_hover_named_proc_arg_hover :: proc(t: ^testing.T) { + source := test.Source { + main = `package test + foo :: proc(bar: f32) {} + + main :: proc() { + foo(b{*}ar=42) + } + `, + } + test.expect_hover(t, &source, "foo.bar: f32") +} /* Waiting for odin fix |