mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
f927da9182
Visit method now cleanly determines if node represents a function call, struct construction or type conversion. Type checking, validation and error message logic is moved to separate methods.
5 lines
192 B
Solidity
5 lines
192 B
Solidity
contract C {
|
|
function f() pure public { abi.encodePacked(0/1); }
|
|
}
|
|
// ----
|
|
// TypeError: (61-64): Cannot perform packed encoding for a literal. Please convert it to an explicit type first. |