solidity/test/libyul/yulSyntaxTests/assignment_fail.yul
2022-04-01 23:41:18 -05:00

13 lines
298 B
Plaintext

{
let x:u256
let y := x
let z:bool
z := y
y := z
}
// ====
// dialect: evmTyped
// ----
// TypeError 9547: (51-52='z'): Assigning a value of type "u256" to a variable of type "bool".
// TypeError 9547: (62-63='y'): Assigning a value of type "bool" to a variable of type "u256".