mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Packed Encoding: Disallow types in v2 that aren't allowed in v1
This commit is contained in:
committed by
chriseth
parent
227addfcef
commit
fe2429de9f
+13
@@ -0,0 +1,13 @@
|
||||
contract C {
|
||||
string[] s;
|
||||
function f() public pure {
|
||||
string[] memory m;
|
||||
abi.encodePacked(m);
|
||||
}
|
||||
function g() public pure {
|
||||
abi.encodePacked(s);
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// TypeError: (112-113): Type not supported in packed mode.
|
||||
// TypeError: (178-179): Type not supported in packed mode.
|
||||
Reference in New Issue
Block a user