solidity/test/libsolidity/syntaxTests/inlineAssembly/constant_array.sol
2022-04-01 23:41:18 -05:00

11 lines
273 B
Solidity

contract C {
string constant x = "abc";
function f() public pure {
assembly {
let a := x
}
}
}
// ----
// TypeError 7615: (115-116='x'): Only direct number constants and references to such constants are supported by inline assembly.