aboutsummaryrefslogtreecommitdiff
path: root/tests/completions_test.odin
diff options
context:
space:
mode:
Diffstat (limited to 'tests/completions_test.odin')
-rw-r--r--tests/completions_test.odin25
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/completions_test.odin b/tests/completions_test.odin
index 0330137..962e944 100644
--- a/tests/completions_test.odin
+++ b/tests/completions_test.odin
@@ -2607,3 +2607,28 @@ ast_poly_proc_matrix_whole :: proc(t: ^testing.T) {
)
}
+
+
+ast_completion_comp_lit_in_proc :: proc(t: ^testing.T) {
+ packages := make([dynamic]test.Package)
+
+ source := test.Source {
+ main = `package test
+ My_Struct :: struct {
+ one: int,
+ two: int,
+ }
+
+ my_function :: proc(my_struct: My_Struct) {
+
+ }
+
+ main :: proc() {
+ my_function({on{*}})
+ }
+ `,
+ packages = {},
+ }
+
+ test.expect_completion_details(t, &source, "", {"My_Struct.one: int"})
+}