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

@@ -15,6 +15,12 @@ impl UProgram {
spans: vec![var.origin],
});
}
if var.ty == Type::Infer {
output.err(CompilerMsg {
msg: format!("Var {:?} cannot be inferred", id),
spans: vec![var.origin],
});
}
}
output
}