mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Allow hex string literals in Yul.
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
contract C {
|
||||
function f() public pure {
|
||||
assembly {
|
||||
let x := hex"12__34";
|
||||
}
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// ParserError 1465: (84-92): Illegal token: Invalid use of number separator '_'.
|
||||
@@ -0,0 +1,9 @@
|
||||
contract C {
|
||||
function f() public pure {
|
||||
assembly {
|
||||
let x := hex"abxy";
|
||||
}
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// ParserError 1465: (84-90): Illegal token: Expected even number of hex-nibbles.
|
||||
Reference in New Issue
Block a user