mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-04 10:49:54 +00:00
feat: add Dict.keys/values/get
This commit is contained in:
parent
a8ef10951a
commit
e0d8306b3e
7 changed files with 129 additions and 21 deletions
|
@ -1028,7 +1028,7 @@ impl Context {
|
|||
}
|
||||
}
|
||||
|
||||
fn union_tp(&self, lhs: &TyParam, rhs: &TyParam) -> Option<TyParam> {
|
||||
pub(crate) fn union_tp(&self, lhs: &TyParam, rhs: &TyParam) -> Option<TyParam> {
|
||||
match (lhs, rhs) {
|
||||
(TyParam::Value(ValueObj::Type(l)), TyParam::Value(ValueObj::Type(r))) => {
|
||||
Some(TyParam::t(self.union(l.typ(), r.typ())))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue