cl-ast: Re-add(?) the Infer type-pattern
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user