solidity/test/libsolidity/syntaxTests/types/bytes32_to_uint32.sol

8 lines
200 B
Solidity
Raw Normal View History

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