solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/315_fixed_type_invalid_implicit_conversion_size.sol

9 lines
214 B
Solidity
Raw Normal View History

contract test {
function f() public {
ufixed a = 11/4;
ufixed248x8 b = a; b;
}
}
// ----
// TypeError: (75-92): Type ufixed128x18 is not implicitly convertible to expected type ufixed248x8.