-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[BUG] Mojo crashes on autoparameterized function parameter #2006
Comments
I don't see this failing with 24.2. Here is the code I have: fn main(): @soraros Does this work for you with 24.2 and if not could you provide a fully formed example? |
@ematejska I think now it only crashes the LSP, on both 24.2 and nightly. Notice that it is a full example. |
Actually, it's not crashing the LSP. Or at least the LSP itself isn't crashing. When you open a
|
Hmm, oof, we'll take a look! Thanks for the easy repro, makes it really easy to dig into this stuff |
This should be fixed in the next release! |
…37596) This PR adds proper support for signature types by synthesizing a FunctionDeclView from a parsed signature type. This allows for tracking references for named parameters/arguments in the signature type, and also fixes various crashes around them. This functionality will be used in a followup as a basis for supporting closures. Fixes #1997 Fixes #2006 Fixes #2007 Fixes #37126 MODULAR_ORIG_COMMIT_REV_ID: b16ffac01d7bfb904e16da93731ed9e8f6016a77
Bug description
As title.
__type_of
also doesn't work. only the explicit from compiles.Steps to reproduce
Either of the following crashes the compiler:
System information
The text was updated successfully, but these errors were encountered: