diff options
| author | Daniel Gavin <danielgavin5@hotmail.com> | 2021-12-25 13:53:23 +0100 |
|---|---|---|
| committer | Daniel Gavin <danielgavin5@hotmail.com> | 2021-12-25 13:53:23 +0100 |
| commit | b4ea7916527ee5acfbbd141ccb7ff90ebac7266c (patch) | |
| tree | 4dc4a831958f4f1258956b0f0a3347740d0517d5 | |
| parent | a8abdc0d123b57549b3beee6fc9a1532a7296219 (diff) | |
more tests
| -rw-r--r-- | tests/completions_test.odin | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/completions_test.odin b/tests/completions_test.odin index 1ea7efa..26c58cc 100644 --- a/tests/completions_test.odin +++ b/tests/completions_test.odin @@ -956,6 +956,24 @@ ast_non_mutable_variable_struct_completion :: proc(t: ^testing.T) { test.expect_completion_details(t, &source, ".", {"my_package.Im: struct"}); } +@(test) +ast_out_of_block_scope_completion :: proc(t: ^testing.T) { + + source := test.Source { + main = `package main + import "my_package" + main :: proc() { + { + aabb := 2 + } + aab* + } + `, + }; + + test.expect_completion_details(t, &source, "", {}); +} + /* Looks like a bug in for each on w.* |