can theoretically infer generics now (even tho they don't exist yet lmao)

This commit is contained in:
2025-04-11 02:32:16 -04:00
parent 07a9d6fee7
commit 44824b8b5a
4 changed files with 28 additions and 9 deletions

View File

@@ -67,6 +67,7 @@ impl PType {
let inner = self.args[0].lower(namespace, output);
Type::Slice(Box::new(inner))
}
"_" => Type::Infer,
_ => {
output.err(CompilerMsg::from_span(span, "Type not found".to_string()));
Type::Error