solidity/test/libyul/yulSyntaxTests/assignment_fail.yul

13 lines
290 B
Plaintext
Raw Normal View History

2020-02-06 18:44:14 +00:00
{
let x:u256
let y := x
let z:bool
z := y
y := z
}
// ====
// dialect: evmTyped
// ----
// TypeError 9547: (51-52): Assigning a value of type "u256" to a variable of type "bool".
// TypeError 9547: (62-63): Assigning a value of type "bool" to a variable of type "u256".