mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-29 20:34:44 +00:00
Refactor
This commit is contained in:
parent
25094efd17
commit
fb0d2f5737
7 changed files with 23 additions and 25 deletions
|
@ -609,7 +609,7 @@ impl Context {
|
|||
TyParam::Value(v) => Ok(enum_t(set![v])),
|
||||
TyParam::Erased(t) => Ok((*t).clone()),
|
||||
TyParam::FreeVar(fv) => {
|
||||
if let Some(t) = fv.type_of() {
|
||||
if let Some(t) = fv.get_type() {
|
||||
Ok(t)
|
||||
} else {
|
||||
todo!()
|
||||
|
@ -637,7 +637,7 @@ impl Context {
|
|||
TyParam::Value(v) => Ok(v.class()),
|
||||
TyParam::Erased(t) => Ok((*t).clone()),
|
||||
TyParam::FreeVar(fv) => {
|
||||
if let Some(t) = fv.type_of() {
|
||||
if let Some(t) = fv.get_type() {
|
||||
Ok(t)
|
||||
} else {
|
||||
todo!()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue