cl-ast: Re-add(?) the Infer type-pattern

This commit is contained in:
2025-03-12 01:20:58 -05:00
parent 584207fc8c
commit 11c8daaed0
8 changed files with 20 additions and 5 deletions

View File

@@ -42,6 +42,10 @@ impl TypeExpression for TyKind {
match self {
TyKind::Never => Ok(table.anon_type(TypeKind::Never)),
TyKind::Empty => Ok(table.anon_type(TypeKind::Empty)),
TyKind::Infer => {
eprintln!("TODO: Introduce type variables");
Err(Error::BadPath { parent: node, path: vec![PathPart::Ident("_".into())] })
}
TyKind::Path(p) => p.evaluate(table, node),
TyKind::Array(a) => a.evaluate(table, node),
TyKind::Slice(s) => s.evaluate(table, node),