diff --git a/simple.program b/simple.program index 05eecca22e..f7d97643bd 100644 --- a/simple.program +++ b/simple.program @@ -1,2 +1,2 @@ -x = a -return x \ No newline at end of file +x = 5 + a +return x ** 2 * 2 \ No newline at end of file diff --git a/src/aleo_program/constraints.rs b/src/aleo_program/constraints.rs index 14ceabae73..12570134de 100644 --- a/src/aleo_program/constraints.rs +++ b/src/aleo_program/constraints.rs @@ -340,7 +340,7 @@ impl ResolvedProgram { // The type of the unassigned variable depends on what is passed in if std::env::args() .nth(1) - .unwrap_or("true".into()) + .expect("variable declaration not passed in") .parse::() .is_ok() { diff --git a/src/language.pest b/src/language.pest index 43e79550a0..533162d13b 100644 --- a/src/language.pest +++ b/src/language.pest @@ -39,7 +39,7 @@ operation_binary = _ { operation_and | operation_or | operation_eq | operation_neq | operation_geq | operation_gt | operation_leq | operation_lt | - operation_add | operation_sub | operation_mul | operation_div | operation_pow + operation_add | operation_sub | operation_pow | operation_mul | operation_div } // operation_add_assign = { "+=" }