aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/types/uint32_to_bytes32.sol
blob: 4153c5c3565ba7de9d1bd756c27105d1bee44129 (plain) (blame)
1
2
3
4
5
6
7
contract C {
    function f() public pure returns(bytes32) {
        return bytes32(uint32(0));
    }
}
// ----
// TypeError: (76-94): Explicit type conversion not allowed from "uint32" to "bytes32".