Skip to content

Commit

Permalink
Add in some missing Stored<..> branches
Browse files Browse the repository at this point in the history
  • Loading branch information
emk committed Dec 7, 2024
1 parent 4eadb97 commit edb4a05
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,9 @@ impl<TV: TypeVarSupport> ArgumentType<TV> {
(ArgumentType::Value(a), ArgumentType::Value(b)) => {
Some(ArgumentType::Value(a.common_supertype(b)?))
}

(Self::Stored(a), Self::Stored(b)) => {
Some(ArgumentType::Stored(a.common_supertype(b)?))
}
(ArgumentType::Aggregating(a), ArgumentType::Aggregating(b)) => {
Some(ArgumentType::Aggregating(Box::new(a.common_supertype(b)?)))
}
Expand All @@ -345,6 +347,9 @@ impl Unify for ArgumentType<TypeVar> {
(ArgumentType::Value(a), ArgumentType::Value(b)) => {
Ok(ArgumentType::Value(a.unify(b, table, spanned)?))
}
(ArgumentType::Stored(a), ArgumentType::Stored(b)) => {
Ok(ArgumentType::Stored(a.unify(b, table, spanned)?))
}
(ArgumentType::Aggregating(a), ArgumentType::Aggregating(b)) => Ok(
ArgumentType::Aggregating(Box::new(a.unify(b, table, spanned)?)),
),
Expand Down

0 comments on commit edb4a05

Please sign in to comment.