solidity/test/libyul/yulSyntaxTests/hex_switch_case.yul
Alex Beregszaszi 7ef9591e64 Expose hex literal to the Yul parser
This allows nicer error messages.
2020-08-28 19:34:52 +01:00

8 lines
150 B
Plaintext

{
switch codesize()
case hex"00" {}
case hex"1122" {}
}
// ----
// ParserError 3772: (33-40): Hex literals are not valid in this context.