-
Notifications
You must be signed in to change notification settings - Fork 5
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
Recognize function pointers as functions (Fn("foo")
=> fn foo(...)
)
#78
Comments
Alright, I was under the assumption that it was already valid. Currently doing this is legal in the lsp's HIR already. I will turn the issue around, Although it will only make sense after the type system. |
Fn("foo")
=> fn foo(...))
Fn("foo")
=> fn foo(...))Fn("foo")
=> fn foo(...)
)
If I press F12 on EDIT: Nope. It doesn't jump to the definition. However, it is recognized as a function with popup and everything. That is great. Only the jump-to-def doesn't work. |
It should, otherwise it's a bug. |
Popups work correctly. However, references and definitions do not work. |
I haven't been able to reproduce this, I see no reason for it not to work as there is not a lot of difference between functions and |
I'll test again and let you know... |
OK. I found out the reason. When definition files conflict, F12 and Shift+F12 seems to jump all over the place. For example, when we have separate definition files under Removing |
@tamasfe I have a new drop in the repo that implements a convenient shorthand to create function pointers.
The LSP may need to be aware of this, as it might flag
fib
as an undeclared variable.The text was updated successfully, but these errors were encountered: