Update value.rs

This commit is contained in:
Shunsuke Shibayama 2022-12-17 12:27:48 +09:00
parent e7d82ecf4a
commit f9fa9f0ce1

View file

@ -1257,7 +1257,14 @@ impl ValueObj {
Some(TypeObj::Builtin(Type::Record(attr_ts)))
}
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,
}
}