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

10 lines
214 B
Solidity
Raw Normal View History

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