From 4a7b6a78eb3f3cdec003dfd6d0495c313eb4d925 Mon Sep 17 00:00:00 2001 From: Daniel Gavin Date: Wed, 28 Apr 2021 00:28:21 +0200 Subject: more work on the new symbols --- tests/completions_test.odin | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'tests') diff --git a/tests/completions_test.odin b/tests/completions_test.odin index 987f43f..2b0abe3 100644 --- a/tests/completions_test.odin +++ b/tests/completions_test.odin @@ -169,6 +169,28 @@ ast_range_array :: proc(t: ^testing.T) { test.expect_completion_details(t, &source, ".", {"My_Struct.one: int", "My_Struct.two: int", "My_Struct.three: int"}); } +@(test) +index_completion_in_comp_lit_type :: proc(t: ^testing.T) { + + source := test.Source { + main = `package test + + My_Struct :: struct { + one: int, + two: int, + three: int, + } + + main :: proc() { + my_comp := M* { + }; + } + `, + source_packages = {}, + }; + + //test.expect_completion_details(t, &source, "", {"My_Struct: struct"}); +} -- cgit v1.2.3