ast: Add the "Self" type in preparation for cl-typeck

This commit is contained in:
2024-02-27 22:48:24 -06:00
parent e3f08ac013
commit 5484d96e7d
3 changed files with 6 additions and 0 deletions

View File

@@ -214,6 +214,7 @@ mod display {
match &self.kind {
TyKind::Never => "!".fmt(f),
TyKind::Empty => "()".fmt(f),
TyKind::SelfTy => "Self".fmt(f),
TyKind::Path(v) => v.fmt(f),
TyKind::Tuple(v) => v.fmt(f),
TyKind::Ref(v) => v.fmt(f),