aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-08-19 17:26:53 -0400
committerBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-08-19 17:26:53 -0400
commitbda66b71a2473a8a8da04588f96a2d2eae08ba3f (patch)
treea64e3a82addfc6ada94a37002bd1516e4d7ee358 /tests
parentb0879461c957d13531b743a367180a8bdd7a2bd8 (diff)
Resolve multipointer slice ranges
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 c043e01..1a94c89 100644
--- a/tests/hover_test.odin
+++ b/tests/hover_test.odin
@@ -4302,6 +4302,19 @@ ast_hover_untyped_string_index :: proc(t: ^testing.T) {
}
test.expect_hover(t, &source, "test.bar: u8")
}
+
+@(test)
+ast_hover_multi_pointer_slice_range :: proc(t: ^testing.T) {
+ source := test.Source {
+ main = `package test
+ main :: proc() {
+ foo: [^]int
+ b{*}ar := foo[:1]
+ }
+ `,
+ }
+ test.expect_hover(t, &source, "test.bar: []int")
+}
/*
Waiting for odin fix