diff options
| author | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-12-06 05:34:10 -0500 |
|---|---|---|
| committer | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-12-06 05:34:10 -0500 |
| commit | aa2378e8bd44f7ff5b8772802a020e47009c114b (patch) | |
| tree | f31a2395ace5d9941ce3804e4826b8bd531c0231 /tests | |
| parent | 84e77e089c17a07bb5920b64083c2d983e9c654e (diff) | |
Check attributes when building the position context
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/hover_test.odin | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/hover_test.odin b/tests/hover_test.odin index 8a54ad4..842360b 100644 --- a/tests/hover_test.odin +++ b/tests/hover_test.odin @@ -5852,6 +5852,19 @@ ast_hover_propagate_docs_alias_in_package_override :: proc(t: ^testing.T) { test.expect_hover(t, &source, "my_package.bar :: proc()\n Overridden\n\n// Comment!") } +@(test) +ast_hover_deferred_attributes :: proc(t: ^testing.T) { + source := test.Source { + main = `package test + foo :: proc() {} + + @(deferred_in = fo{*}o) + bar :: proc() {} + `, + } + test.expect_hover(t, &source, "test.foo :: proc()") +} + /* Waiting for odin fix |