-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
"assertion failed while typechecking" crash due to a missing implicit, when certain unrelated given
and implicit def
are in scope.
#19328
Labels
Milestone
Comments
raquo
added
itype:bug
itype:crash
stat:needs triage
Every issue needs to have an "area" and "itype" label
labels
Dec 23, 2023
If you have time submitting a PR with the added test could really help the compiler team. |
raquo
added a commit
to raquo/dotty
that referenced
this issue
Dec 23, 2023
raquo
added a commit
to raquo/dotty
that referenced
this issue
Dec 23, 2023
hamzaremmal
added
stat:duplicate
area:implicits
related to implicits
and removed
stat:needs triage
Every issue needs to have an "area" and "itype" label
labels
Dec 30, 2023
nicolasstucki
added a commit
that referenced
this issue
Feb 1, 2024
Adding tests for crash reproduction #19328 that I reported, that was already fixed in nightly. I added the `pos` ones just in case, as protection against potential regressions. So far I managed to reproduce the crash only when the implicit was missing, as in `neg` tests. I can remove the `pos` tests if you think these are excessive. I ran only my own tests locally, they passed. Fixes #19328 cc @soronpo
WojciechMazur
added a commit
that referenced
this issue
Jul 1, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Compiler version
3.3.1
The good news is that this appears to be fixed in nightly, I tested that
3.4.0-RC1-bin-20231219-eae8831-NIGHTLY
does not crash.I'm still filing the issue because the reproduction is small and consistent, and maybe you'll want to add this to your tests, or maybe it'll help in debugging any related issues. I couldn't find an existing report for this exact issue, but I easily could have missed it.
Minimized code
Output (click arrow to expand)
The text was updated successfully, but these errors were encountered: