aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDanielGavin <danielgavin5@hotmail.com>2025-07-15 15:10:50 +0200
committerGitHub <noreply@github.com>2025-07-15 15:10:50 +0200
commit5dcf2252629655d45ea4e3169f003b4010665fd6 (patch)
tree9244232317b9568a4b4ab3f0f0a14d60b484b90e /tests
parent71f577c7b22db5e74f38b23dbc171a7c4de8113c (diff)
parentd2a6b208bf6a9d62400b9134f557658ea4ad9b83 (diff)
Merge pull request #749 from BradLewis/fix/proc-implicit-selector
Correctly resolve proc param type
Diffstat (limited to 'tests')
-rw-r--r--tests/completions_test.odin20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/completions_test.odin b/tests/completions_test.odin
index 70e12d6..eacdc3d 100644
--- a/tests/completions_test.odin
+++ b/tests/completions_test.odin
@@ -3855,3 +3855,23 @@ ast_completion_struct_field_enum :: proc(t: ^testing.T) {
}
test.expect_completion_details(t, &source, "", {"Bar.foo: test.Foo"})
}
+
+@(test)
+ast_completion_proc_enum_param :: proc(t: ^testing.T) {
+ source := test.Source {
+ main = `package test
+
+ Foo :: enum {
+ A,
+ B
+ }
+
+ bar :: proc(a, b: int, foo: Foo) {}
+
+ main :: proc() {
+ bar(1, 1, .{*})
+ }
+ `,
+ }
+ test.expect_completion_details(t, &source, "", {"A", "B"})
+}