Merge pull request #439 from Kindelia/experimental

Experimental
This commit is contained in:
Felipe G 2022-12-15 15:22:13 -03:00 committed by GitHub
commit b1e25cef22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 3 deletions

View File

@ -40,7 +40,7 @@ impl<'a> Parser<'a> {
Token::Star => Some(Operator::Mul),
Token::Slash => Some(Operator::Div),
Token::Percent => Some(Operator::Mod),
Token::Ampersand => Some(Operator::Add),
Token::Ampersand => Some(Operator::And),
Token::Bar => Some(Operator::Or),
Token::Hat => Some(Operator::Xor),
Token::GreaterGreater => Some(Operator::Shr),

View File

@ -241,7 +241,8 @@ impl<'a> DesugarState<'a> {
}
if !unbound.is_empty() {
self.send_err(PassError::NoCoverage(range, unbound))
self.send_err(PassError::NoCoverage(range, unbound));
return desugared::Expr::err(range);
}
let motive = if let Some(res) = &match_.motive {

View File

@ -1,3 +1,3 @@
run {
(& (+ #2 (& (- #3 (& (* #4 (/ #5 (% #6 (& (+ #2 (| #8 (^ #9 (<< #10 (% (>> #23 (% (< #2 (>= #4 (<= (== #4 #4) (> #3 (!= #5 #3))))) #60)) #60))))) #1152921504606846975)))) #1152921504606846975)) #1152921504606846975)) #1152921504606846975)
(& (+ #2 (& (- #3 (& (* #4 (/ #5 (% #6 (& #2 (| #8 (^ #9 (<< #10 (% (>> #23 (% (< #2 (>= #4 (<= (== #4 #4) (> #3 (!= #5 #3))))) #60)) #60)))))))) #1152921504606846975)) #1152921504606846975)) #1152921504606846975)
}