aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-09-10 13:40:04 -0400
committerBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-09-10 13:44:11 -0400
commita60d0daad2ff3e57eb9942c58c532007794bbd63 (patch)
tree8d888b9551b1b2a66886d1b09451fe8f79287d70 /tests
parent8f44d4c36c2712b9d230238b58042e79df67cefd (diff)
Add parentheses around named proc returns
Diffstat (limited to 'tests')
-rw-r--r--tests/hover_test.odin12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/hover_test.odin b/tests/hover_test.odin
index 8879cc9..5370804 100644
--- a/tests/hover_test.odin
+++ b/tests/hover_test.odin
@@ -4533,6 +4533,18 @@ ast_hover_parapoly_union_with_where_clause :: proc(t: ^testing.T) {
}
test.expect_hover(t, &source, "test.Foo: union($T: typeid) #no_nil where type_is_integer(T) {\n\tT,\n\tstring,\n}")
}
+
+@(test)
+ast_hover_proc_named_return_parens :: proc(t: ^testing.T) {
+ source := test.Source {
+ main = `package test
+ f{*}oo :: proc() -> (a: int) {
+ return
+ }
+ `,
+ }
+ test.expect_hover(t, &source, "test.foo: proc() -> (a: int)")
+}
/*
Waiting for odin fix