carbon-language / carbon-lang

Carbon Language's main repository: documents, design, implementation, and related tools. (NOTE: Carbon Language is experimental; see README)
https://github.com/carbon-language/carbon-lang/blob/trunk/README.md
Other
32.31k stars 1.48k forks source link

Use the correct type for `Self` in generic classes and generic interfaces #4087

Closed zygoloid closed 2 days ago

zygoloid commented 4 days ago

In a class C(T:! type), the type Self should be C(T), not merely C. Similarly, in an interface I(T:! type), the type of self should be I(T), not merely I.

zygoloid commented 4 days ago

Depends on #4086.