mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
6 lines
146 B
Solidity
6 lines
146 B
Solidity
contract test {
|
|
uint8 public x = -1;
|
|
}
|
|
// ----
|
|
// TypeError: (37-39): Type int_const -1 is not implicitly convertible to expected type uint8.
|