mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-28 12:14:43 +00:00
chore: uncomment code
This commit is contained in:
parent
d2460b9dde
commit
46f08c4451
3 changed files with 8 additions and 8 deletions
|
@ -1008,9 +1008,9 @@ impl Context {
|
||||||
if let Some(self_t) = ty.self_t() {
|
if let Some(self_t) = ty.self_t() {
|
||||||
self.sub_unify(callee.ref_t(), self_t, callee, Some(&Str::ever("self")))?;
|
self.sub_unify(callee.ref_t(), self_t, callee, Some(&Str::ever("self")))?;
|
||||||
}
|
}
|
||||||
/*if DEBUG_MODE && ty.has_qvar() {
|
if DEBUG_MODE && ty.has_qvar() {
|
||||||
panic!("{ty} has qvar")
|
panic!("{ty} has qvar")
|
||||||
}*/
|
}
|
||||||
Ok(ty)
|
Ok(ty)
|
||||||
}
|
}
|
||||||
// HACK: {op: |T|(T -> T) | op == F} => ?T -> ?T
|
// HACK: {op: |T|(T -> T) | op == F} => ?T -> ?T
|
||||||
|
@ -1073,9 +1073,9 @@ impl Context {
|
||||||
Quantified(quant) => {
|
Quantified(quant) => {
|
||||||
let mut tmp_tv_cache = TyVarCache::new(self.level, self);
|
let mut tmp_tv_cache = TyVarCache::new(self.level, self);
|
||||||
let ty = self.instantiate_t_inner(*quant, &mut tmp_tv_cache, &())?;
|
let ty = self.instantiate_t_inner(*quant, &mut tmp_tv_cache, &())?;
|
||||||
/*if DEBUG_MODE && ty.has_qvar() {
|
if DEBUG_MODE && ty.has_qvar() {
|
||||||
panic!("{ty} has qvar")
|
panic!("{ty} has qvar")
|
||||||
}*/
|
}
|
||||||
Ok(ty)
|
Ok(ty)
|
||||||
}
|
}
|
||||||
Refinement(refine) if refine.t.is_quantified_subr() => {
|
Refinement(refine) if refine.t.is_quantified_subr() => {
|
||||||
|
|
|
@ -4762,9 +4762,9 @@ impl Type {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if self.level() == Some(GENERIC_LEVEL) {
|
if self.level() == Some(GENERIC_LEVEL) {
|
||||||
/*if DEBUG_MODE {
|
if DEBUG_MODE {
|
||||||
panic!("{self} is fixed");
|
panic!("{self} is fixed");
|
||||||
}*/
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
match self {
|
match self {
|
||||||
|
|
|
@ -1533,9 +1533,9 @@ impl TyParam {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if self.level() == Some(GENERIC_LEVEL) {
|
if self.level() == Some(GENERIC_LEVEL) {
|
||||||
/*if DEBUG_MODE {
|
if DEBUG_MODE {
|
||||||
panic!("{self} is fixed");
|
panic!("{self} is fixed");
|
||||||
}*/
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
match self {
|
match self {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue