aboutsummaryrefslogblamecommitdiffstats
path: root/test/libsolidity/syntaxTests/nameAndTypeResolution/194_negative_integers_to_unsigned.sol
blob: 3702f09babe0e121cd2e1869961adbb320888dd5 (plain) (tree)
1
2
3
4
5




                                                                                              
contract test {
    uint8 public x = -1;
}
// ----
// TypeError: (37-39): Type int_const -1 is not implicitly convertible to expected type uint8.