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

11 lines
269 B
Solidity
Raw Normal View History

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