mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-14 15:18:56 +00:00
We previously discarded a `generic` applied to `self`, resulting in silently treating `generic self: Self` as a runtime parameter and producing a weird error on `template self: Self`. Instead of forcibly making all `self` parameters non-runtime, change the *default* for a parameter named `self` to be runtime. This is only a partial fix; more work is required to support `fn F(generic self)` with an omitted type.