mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-16 14:48:11 +00:00
The prior code crashed when trying to find the function's `Self` parameter, I believe. `fail_redefine_with_dependents.carbon` handles this case. It wasn't caught by the prior case because the `F` didn't have any dependent parameters. Note this also ran into a formatter crash, with invalid constants. I'm fixing that here, but will also note it on #4145 (the crash in FinishGenericDecl was muddled by a crash in Formatter code).