aboutsummaryrefslogblamecommitdiffstats
path: root/test/libsolidity/syntaxTests/types/bytes32_to_uint32.sol
blob: 77e813abbd3981c689a07d6ccc1aab2818aad88d (plain) (tree)
1
2
3
4
5
6
7






                                                                                       
contract C {
    function f() public pure returns(uint32) {
        return uint32(bytes32(''));
    }
}
// ----
// TypeError: (75-94): Explicit type conversion not allowed from "bytes32" to "uint32".