solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/306_invalid_int_implicit_conversion_from_fixed.sol

10 lines
209 B
Solidity

contract test {
function f() public {
fixed a = 4.5;
int b = a;
a; b;
}
}
// ----
// TypeError: (73-82): Type fixed128x18 is not implicitly convertible to expected type int256.