From aa2378e8bd44f7ff5b8772802a020e47009c114b Mon Sep 17 00:00:00 2001 From: Brad Lewis <22850972+BradLewis@users.noreply.github.com> Date: Sat, 6 Dec 2025 05:34:10 -0500 Subject: Check attributes when building the position context --- tests/hover_test.odin | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'tests/hover_test.odin') 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 -- cgit v1.2.3