mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
8 lines
266 B
Solidity
8 lines
266 B
Solidity
|
contract test {
|
||
|
function f() public {
|
||
|
ufixed256x1 a = 1/3; a;
|
||
|
}
|
||
|
}
|
||
|
// ----
|
||
|
// TypeError: (50-69): Type rational_const 1 / 3 is not implicitly convertible to expected type ufixed256x1. Try converting to type ufixed256x77 or use an explicit conversion.
|