diff options
| author | Damian Tarnawski <gthetarnav@gmail.com> | 2025-09-12 00:38:59 +0200 |
|---|---|---|
| committer | Damian Tarnawski <gthetarnav@gmail.com> | 2025-09-12 00:38:59 +0200 |
| commit | ebb81db93dedb49124386f5687e476ec33d703a2 (patch) | |
| tree | 1d6b55ed004cc39546e4345d55f05131def2d885 | |
| parent | 26673f61053f835195f99dcdba33bfd0c92ab9c9 (diff) | |
Add additional test case to ast_inlay_hints_multi_return_params
| -rw-r--r-- | tests/inlay_hints_test.odin | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/inlay_hints_test.odin b/tests/inlay_hints_test.odin index ab2cd1b..c5600cc 100644 --- a/tests/inlay_hints_test.odin +++ b/tests/inlay_hints_test.odin @@ -165,12 +165,14 @@ ast_inlay_hints_multi_return_params :: proc(t: ^testing.T) { source := test.Source { main = `package test - func :: proc (a: int, b: int = 2, c := 3) {} + takes_three_required :: proc (a, b, c: int) {} + takes_three_optional :: proc (a: int, b: int = 2, c := 3) {} - two :: proc () -> (int, int) {return 1, 2} + returns_two :: proc () -> (int, int) {return 1, 2} - main :: proc() { - func([[a, b = ]]two()[[, c = 3]]) + main :: proc () { + takes_three_required([[a, b = ]]returns_two(), [[c = ]]3) + takes_three_optional([[a, b = ]]returns_two()[[, c = 3]]) } `, packages = {}, |