mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
9 lines
272 B
Solidity
9 lines
272 B
Solidity
contract test {
|
|
function f() public {
|
|
uint[] memory a;
|
|
a[.5];
|
|
}
|
|
}
|
|
// ----
|
|
// TypeError 2326: (77-79): Type rational_const 1 / 2 is not implicitly convertible to expected type uint256. Try converting to type ufixed8x1 or use an explicit conversion.
|