solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/322_fixed_to_bytes_implicit_conversion.sol

9 lines
209 B
Solidity
Raw Normal View History

contract test {
function f() public {
fixed a = 3.25;
bytes32 c = a; c;
}
}
// ----
// TypeError 9574: (74-87): Type fixed128x18 is not implicitly convertible to expected type bytes32.