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