use crate::type_aliases::refinement_id_refinement::RefinementId;
use crate::type_aliases::type_id::TypeId;
#[derive(Debug, Clone)]
pub struct Inference {
pub ty: TypeId,
pub refinement: RefinementId,
}
impl luaur_common::records::dense_hash_table::DenseDefault for Inference {
fn dense_default() -> Self {
Self {
ty: core::ptr::null(),
refinement: core::ptr::null_mut(),
}
}
}
impl Inference {
pub fn inference() -> Self {
Self {
ty: core::ptr::null(),
refinement: core::ptr::null_mut(),
}
}
pub fn inference_type_id_refinement_id(ty: TypeId, refinement: RefinementId) -> Self {
Self { ty, refinement }
}
}