Type aliases

This commit is contained in:
2026-07-02 07:05:19 +02:00
parent d62d884add
commit 579d229cad
4 changed files with 32 additions and 3 deletions
+5
View File
@@ -32,6 +32,11 @@ pub enum TopLevelKind {
ImplDecl(ImplDecl),
StaticDecl(VarDeclStmt),
ConstDecl(VarDeclStmt),
TypeAlias {
name: Identifier,
generics: Option<GenericsDecl>,
ty: TypeExpr,
},
TraitDecl {
visibility: Visibility,
name: Identifier,