Implement support for capital Self
in traits and impl blocks
#803
Labels
comp: analyzer
Everything that involves the analyzer pass
comp: lowering
Everything that involves the lowering pass
comp: parser
prio: P3 important
type: feature
type: lang-spec
type: syntax
What is wrong?
We currently do not support
Self
in traits and impl blocks (See Rust docs).Implementing support for
Self
would give us an easy way to unlock certain functionality even before traits are allowed to be fully generic (which is currently still blocked until we get rid ofLocation
in the analyzer).E.g. here is how
min()
/max()
functions could be supported.How can it be fixed
Self
in parserSelf
in analyzerSelf
to actual typeThe text was updated successfully, but these errors were encountered: