1 2 3 4 5 6 7 8 9 10 11 12 13
use crate::checker::{types::TypeId, TyResult}; use super::synthesise_ast_type; pub fn synthesise_struct_type() -> TyResult<TypeId> { let str = 21; todo!() // let fields = synthesise_struct_fields(struct_type, ctx)?; // let struct_id = ctx.type_store.add_type(ExternFnType::new(fields, TypeId::UNIT, false)); // Ok(struct_id) } fn synthesise_struct_fields() -> TyResult<Vec<TypeId>> {}