mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Add missing annotation assignments
This commit is contained in:
@@ -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.
|
||||
Reference in New Issue
Block a user