From b4ea7916527ee5acfbbd141ccb7ff90ebac7266c Mon Sep 17 00:00:00 2001 From: Daniel Gavin Date: Sat, 25 Dec 2021 13:53:23 +0100 Subject: more tests --- tests/completions_test.odin | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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.* -- cgit v1.2.3