1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//! > Test assignment
//! > test_runner_name
test_expr_semantics(expect_diagnostics: false)
//! > function_body
let mut a = 5;
//! > expr_code
a = a * 3
//! > expected_semantics
Assignment(
ExprAssignment {
ref_arg: LocalVarId(test::a),
rhs: FunctionCall(
ExprFunctionCall {
function: core::Felt252Mul::mul,
args: [
Value(
Var(
LocalVarId(test::a),
),
),
Value(
Literal(
ExprNumericLiteral {
value: 3,
ty: core::felt252,
},
),
),
],
coupon_arg: None,
ty: core::felt252,
},
),
ty: (),
},
)
//! > expected_diagnostics