solidity/test/libsolidity/syntaxTests/inlineAssembly/constant_array.sol

11 lines
264 B
Solidity

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