diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/hover_test.odin | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/hover_test.odin b/tests/hover_test.odin index 9001300..adddb89 100644 --- a/tests/hover_test.odin +++ b/tests/hover_test.odin @@ -4400,6 +4400,23 @@ ast_hover_ternary :: proc(t: ^testing.T) { } test.expect_hover(t, &source, "test.foo: int") } + +@(test) +ast_hover_defer_statement :: proc(t: ^testing.T) { + source := test.Source { + main = `package test + + foo :: proc() { + defer { + s{*}: struct { + bar: int, + } + } + } + ` + } + test.expect_hover(t, &source, "test.s: struct {\n\tbar: int,\n}") +} /* Waiting for odin fix |