mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Correct wrong error message referencing .slot and .offset when .length was used
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
contract Test {
|
||||
uint constant x = 2;
|
||||
function f() public pure {
|
||||
assembly {
|
||||
let y := x.length
|
||||
}
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// TypeError 3622: (91-99): The suffix ".length" is not supported by this variable or type.
|
||||
Reference in New Issue
Block a user