mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
12 lines
477 B
Solidity
12 lines
477 B
Solidity
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.
|