mirror of
https://github.com/erg-lang/erg.git
synced 2025-10-01 21:21:10 +00:00
Update value.rs
This commit is contained in:
parent
e7d82ecf4a
commit
f9fa9f0ce1
1 changed files with 8 additions and 1 deletions
|
@ -1257,7 +1257,14 @@ impl ValueObj {
|
||||||
Some(TypeObj::Builtin(Type::Record(attr_ts)))
|
Some(TypeObj::Builtin(Type::Record(attr_ts)))
|
||||||
}
|
}
|
||||||
Self::Subr(subr) => subr.as_type().map(TypeObj::Builtin),
|
Self::Subr(subr) => subr.as_type().map(TypeObj::Builtin),
|
||||||
Self::Array(_) | Self::Tuple(_) | Self::Dict(_) => todo!(),
|
Self::Array(elems) | Self::Tuple(elems) => {
|
||||||
|
erg_common::log!(err "as_type({})", erg_common::fmt_vec(elems));
|
||||||
|
None
|
||||||
|
}
|
||||||
|
Self::Dict(elems) => {
|
||||||
|
erg_common::log!(err "as_type({elems})");
|
||||||
|
None
|
||||||
|
}
|
||||||
_other => None,
|
_other => None,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue