mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-23 02:01:54 +03:00
slight clean up & handle grammar readme
This commit is contained in:
parent
8cb4b19e66
commit
936360793c
@ -171,12 +171,12 @@ impl<'a> TypeChecker<'a> {
|
||||
// Allow `group` * `scalar` multiplication.
|
||||
match (t1.as_ref(), t2.as_ref()) {
|
||||
(Some(Type::Group), Some(other)) => {
|
||||
self.assert_type(t1.unwrap(), expected, binary.left.span());
|
||||
self.assert_type(Type::Group, expected, binary.left.span());
|
||||
self.assert_type(*other, Some(Type::Scalar), binary.span());
|
||||
Some(Type::Group)
|
||||
}
|
||||
(Some(other), Some(Type::Group)) => {
|
||||
self.assert_type(t2.unwrap(), expected, binary.left.span());
|
||||
self.assert_type(Type::Group, expected, binary.left.span());
|
||||
self.assert_type(*other, Some(Type::Scalar), binary.span());
|
||||
Some(Type::Group)
|
||||
}
|
||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user