Update type_.rs

This commit is contained in:
Collin Chin 2022-05-24 13:24:36 -04:00 committed by GitHub
parent 3979061632
commit c10e305366
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -55,7 +55,8 @@ impl Type {
| (Type::Boolean, Type::Boolean)
| (Type::Char, Type::Char)
| (Type::Field, Type::Field)
| (Type::Group, Type::Group) => true,
| (Type::Group, Type::Group)
| (Type::Scalar, Type::Scalar) => true,
(Type::IntegerType(left), Type::IntegerType(right)) => left.eq(right),
_ => false,
}