Add missing annotation assignments

This commit is contained in:
Mathias Baumann
2020-10-07 14:52:35 +02:00
parent 22caed1e1e
commit 6114cd8e8e
5 changed files with 25 additions and 3 deletions
@@ -0,0 +1,11 @@
contract C {
function foo(uint x) public
{
// Used to cause an ICE
uint p = new uint[] = x;
}
}
// ----
// TypeError 4247: (100-110): Expression has to be an lvalue.
// TypeError 7407: (113-114): Type uint256 is not implicitly convertible to expected type function (uint256) pure returns (uint256[] memory).
// TypeError 9574: (91-114): Type function (uint256) pure returns (uint256[] memory) is not implicitly convertible to expected type uint256.