Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No signature for resolved procedure groups #462

Open
thetarnav opened this issue Aug 3, 2024 · 0 comments
Open

No signature for resolved procedure groups #462

thetarnav opened this issue Aug 3, 2024 · 0 comments

Comments

@thetarnav
Copy link
Contributor

add_num :: proc (a, b: int) -> int {return a + b}
add_vec :: proc (a, b: [2]f32) -> [2]f32 {return a + b}
add     :: proc {add_num, add_vec}

main :: proc() {
	foo := add(2, 10) // `foo` doesn't show up anything
	bar := add(2, )   // `bar` shows up `int`
}

type of foo is not getting resolved and add has a generic proc signature, instead proc (a, b: int) -> int of the procedure getting resolved.

image

But when typing the paramenters, the correct signature apprears.

image

This affects also make, where we don't get to see the inlay hints for default arguments, as we can with new.

image

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant