Skip to content

[Bug] Imported type aliases are not evaluated and prevent hover tooltip #1149

@BigBoyBarney

Description

@BigBoyBarney

Hi!

This is best explained through an example:

  1. Let's create 2 packages, let's call them One and Two.
  2. Let Two contain a single alias, Alias :: u64
  3. Import Two from One
  4. See error in the following code snippet:
package One

import two "../Two"

Alias :: u64

main :: proc() {
	x : two.Alias = 4 // Appears as two.Alias
	y := make([]int, x, context.temp_allocator) // `y` has no hover tooltip
	
	a : Alias = 4 // Appears as u64
	b := make([]int, a, context.temp_allocator) // b has hover tooltip
}

Video demonstration:

Screencast.From.2025-11-04.20-34-27.mp4

ols is latest master (ade7ec0)


Discovered this when using my DuckDB bindings, which has its own Idx_T alias for u64.
Cheers!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions