add changelog, fix merge
This commit is contained in:
parent
667bc8d077
commit
e2bd653944
5 changed files with 11 additions and 8 deletions
1
changelogs/unreleased/1121-dark64
Normal file
1
changelogs/unreleased/1121-dark64
Normal file
|
@ -0,0 +1 @@
|
|||
Use curly braces to enclose blocks
|
|
@ -1,4 +1,4 @@
|
|||
// only using add, no need to flatten
|
||||
def main(field a, field b) -> field {
|
||||
return a + b:
|
||||
return a + b;
|
||||
}
|
||||
|
|
|
@ -2492,7 +2492,7 @@ impl<'ast, T: Field> Checker<'ast, T> {
|
|||
Ok(StructExpression::conditional(condition, consequence, alternative).into())
|
||||
},
|
||||
(TypedExpression::Tuple(consequence), TypedExpression::Tuple(alternative)) => {
|
||||
Ok(TupleExpression::conditional(condition, consequence, alternative, kind).into())
|
||||
Ok(TupleExpression::conditional(condition, consequence, alternative).into())
|
||||
},
|
||||
(TypedExpression::Uint(consequence), TypedExpression::Uint(alternative)) => {
|
||||
Ok(UExpression::conditional(condition, consequence, alternative).into())
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
def main(field x):
|
||||
assert(x < 2)
|
||||
return
|
||||
def main(field x) {
|
||||
assert(x < 2);
|
||||
return;
|
||||
}
|
|
@ -1,3 +1,4 @@
|
|||
def main(bool flag) -> ((field, field)):
|
||||
(field, field) a = if flag then (1f, 2f) else (2f, 1f) fi
|
||||
return a
|
||||
def main(bool flag) -> ((field, field)) {
|
||||
(field, field) a = flag ? (1f, 2f) : (2f, 1f);
|
||||
return a;
|
||||
}
|
Loading…
Reference in a new issue