aboutsummaryrefslogblamecommitdiffstats
path: root/test/libsolidity/syntaxTests/nameAndTypeResolution/475_implicit_conversion_disallowed.sol
blob: 232e701df3dd32e2c124f211827135e876e665e8 (plain) (tree)
1
2
3
4
5
6
7
8







                                                                                                                                         
contract C {
    function f() public returns (bytes4) {
        uint32 tmp = 1;
        return tmp;
    }
}
// ----
// TypeError: (95-98): Return argument type uint32 is not implicitly convertible to expected type (type of first return variable) bytes4.