Fix codegen for ordered choice operator
This commit is contained in:
@@ -253,11 +253,12 @@ impl Term {
|
||||
quote! {
|
||||
{
|
||||
let mut closure = || #expr;
|
||||
if !closure() {
|
||||
return false;
|
||||
if closure() {
|
||||
while closure() {}
|
||||
true
|
||||
} else {
|
||||
false
|
||||
}
|
||||
while closure() {}
|
||||
true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user