solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/317_fixed_type_valid_explicit_conversions.sol

10 lines
267 B
Solidity
Raw Normal View History

contract test {
function f() public {
ufixed256x80 a = ufixed256x80(1/3); a;
ufixed248x80 b = ufixed248x80(1/3); b;
ufixed8x1 c = ufixed8x1(1/3); c;
}
}
// ----
// Warning: (20-182): Function state mutability can be restricted to pure