leo/tests/compiler/statements/assign_fail.leo
2022-10-05 16:53:49 -07:00

35 lines
355 B
Plaintext

/*
namespace: Compile
expectation: Fail
*/
program test.aleo {
x::y = y;
5 = y;
x + x = y;
-x = y;
!x = y;
a? x : x = y;
x as u32 = y;
[x, x, x] = y;
[x; 3] = y;
(x, x, x) = y;
x {x: y, y: z} = y;
x() = y;
x.y() = y;
🦀 = y;
}