leo/tests/parser/statement/assign_fail.leo

32 lines
227 B
Plaintext
Raw Normal View History

2022-02-15 04:25:57 +03:00
/*
namespace: ParseStatement
expectation: Fail
*/
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;