conlang: Self is not a type, it's a path to a type

This commit is contained in:
2024-07-17 15:05:52 -05:00
parent ded100bf71
commit b3d62c09aa
11 changed files with 25 additions and 20 deletions

View File

@@ -252,7 +252,6 @@ pub struct Ty {
pub enum TyKind {
Never,
Empty,
SelfTy,
Path(Path),
Tuple(TyTuple),
Ref(TyRef),
@@ -293,6 +292,7 @@ pub struct Path {
pub enum PathPart {
SuperKw,
SelfKw,
SelfTy,
Ident(Sym),
}