uh oh, I need to actually switch to struct subvars and resolve pointer variables

This commit is contained in:
2025-04-26 22:15:36 -04:00
parent 71598a4afa
commit a087af505e
18 changed files with 205 additions and 200 deletions
+2 -1
View File
@@ -5,6 +5,7 @@ use crate::{
};
use std::{collections::HashMap, fmt::Debug};
#[derive(Clone)]
pub struct UFunc {
pub args: Vec<VarID>,
pub ret: Type,
@@ -128,7 +129,7 @@ pub type GenericID = ID<UGeneric>;
impl Finish for UFunc {
fn finish(p: &mut UProgram, id: ID<Self>, name: &str) {
let var = p.def_searchable(
name.to_string(),
name,
Some(UVar {
ty: Type::Placeholder,
}),