solidity/test/libyul/yulSyntaxTests/type_check_cases_fail_evmtyped.yul

11 lines
238 B
Plaintext
Raw Normal View History

2020-02-06 18:44:14 +00:00
{
switch 7
case true:bool {}
case true:bool {}
}
// ====
// dialect: evmTyped
// ----
// TypeError: (24-33): Expected a value of type "u256" but got "bool"
// TypeError: (46-55): Expected a value of type "u256" but got "bool"