diff options
| author | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-11-17 05:45:45 -0500 |
|---|---|---|
| committer | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-11-17 05:45:45 -0500 |
| commit | 2661d6f23fb419998d64fa968a885884146792cb (patch) | |
| tree | 7f36f361024634c9a47ff4505f236b80f7e85bcd /tests | |
| parent | 161ce3ea1419517da6f7752acba9e4d02f2c4d4b (diff) | |
Add missing unary expr operands
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/hover_test.odin | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/hover_test.odin b/tests/hover_test.odin index 8d5f461..ea27cc8 100644 --- a/tests/hover_test.odin +++ b/tests/hover_test.odin @@ -5675,6 +5675,20 @@ ast_hover_unary_overload_function_call :: proc(t: ^testing.T) { } test.expect_hover(t, &source, "test.bar: int") } + +@(test) +ast_hover_negate_function_call :: proc(t: ^testing.T) { + source := test.Source { + main = `package test + foo :: proc() -> bool {} + + main :: proc() { + b{*}ar := !foo() + } + `, + } + test.expect_hover(t, &source, "test.bar: bool") +} /* Waiting for odin fix |