aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-09-07 15:30:22 -0400
committerBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-09-07 15:34:51 -0400
commit59d3d9efc70ec5530c52ac6a657c8778defd1819 (patch)
treed1807e581e2b1bdfc1f798dc2c071c46169446be /tests
parent0673e745df404a5e526867c07a42ae049f43b816 (diff)
Improvement to resolving numeric binary expressions
Diffstat (limited to 'tests')
-rw-r--r--tests/hover_test.odin13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/hover_test.odin b/tests/hover_test.odin
index dea4b3b..11ea8b3 100644
--- a/tests/hover_test.odin
+++ b/tests/hover_test.odin
@@ -4470,6 +4470,19 @@ ast_hover_casted_variable :: proc(t: ^testing.T) {
}
test.expect_hover(t, &source, "test.foo: int")
}
+
+@(test)
+ast_hover_float_binary_expr :: proc(t: ^testing.T) {
+ source := test.Source {
+ main = `package test
+ main :: proc() {
+ foo := 2.1
+ b{*}ar := foo - 2
+ }
+ `,
+ }
+ test.expect_hover(t, &source, "test.bar: float")
+}
/*
Waiting for odin fix