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

12 lines
221 B
Solidity

contract C {
function f() public pure {
assembly {
switch codesize()
case hex"00" {}
case hex"1122" {}
}
}
}
// ----
// ParserError 3772: (92-99): Hex literals are not valid in this context.