From bda66b71a2473a8a8da04588f96a2d2eae08ba3f Mon Sep 17 00:00:00 2001 From: Brad Lewis <22850972+BradLewis@users.noreply.github.com> Date: Tue, 19 Aug 2025 17:26:53 -0400 Subject: Resolve multipointer slice ranges --- tests/hover_test.odin | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'tests') 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 -- cgit v1.2.3