diff options
Diffstat (limited to 'tests/completions_test.odin')
| -rw-r--r-- | tests/completions_test.odin | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/completions_test.odin b/tests/completions_test.odin index 403ae51..76ed98a 100644 --- a/tests/completions_test.odin +++ b/tests/completions_test.odin @@ -266,6 +266,32 @@ ast_completion_identifier_proc_group :: proc(t: ^testing.T) { } @(test) +ast_completion_identifier_proc_group_2 :: proc(t: ^testing.T) { + source := test.Source { + main = `package test + raw_data_slice :: proc(v: $T/[]$E) -> [^]E { + } + + zzcool :: proc { + raw_data_slice, + } + + main :: proc() { + zzco{*} + } + + `, + } + + test.expect_completion_details( + t, + &source, + "", + {"test.zzcool: proc(v: $T/[]$E) -> [^]E"}, + ) +} + +@(test) ast_completion_in_comp_lit_type :: proc(t: ^testing.T) { source := test.Source { main = `package test |