mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
8 lines
242 B
Solidity
8 lines
242 B
Solidity
contract c {
|
|
function f() public pure {
|
|
uint a = -1;
|
|
}
|
|
}
|
|
// ----
|
|
// TypeError 9574: (52-63): Type int_const -1 is not implicitly convertible to expected type uint256. Cannot implicitly convert signed literal to unsigned type.
|