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

11 lines
231 B
Solidity
Raw Normal View History

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