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

11 lines
220 B
Solidity

contract Test {
uint constant x = 2;
function f() public pure {
assembly {
let y := x.length
}
}
}
// ----
// TypeError 3622: (91-99='x.length'): The suffix ".length" is not supported by this variable or type.