mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-04 02:39:20 +00:00
refactor: inst (instance) -> imp (impl)
This commit is contained in:
parent
b40666d618
commit
a5ce33f2c4
8 changed files with 38 additions and 18 deletions
|
@ -27,6 +27,11 @@ pub fn named_free_var(name: Str, level: usize, constraint: Constraint) -> Type {
|
|||
Type::FreeVar(Free::new_named_unbound(name, level, constraint))
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn named_uninit_var(name: Str) -> Type {
|
||||
Type::FreeVar(Free::new_named_unbound(name, 1, Constraint::Uninited))
|
||||
}
|
||||
|
||||
pub fn array_t(elem_t: Type, len: TyParam) -> Type {
|
||||
poly("Array", vec![TyParam::t(elem_t), len])
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue