mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
8 lines
176 B
Solidity
8 lines
176 B
Solidity
contract test {
|
|
function f() public {
|
|
2 ** (1/2);
|
|
}
|
|
}
|
|
// ----
|
|
// TypeError: (50-60): Operator ** not compatible with types int_const 2 and rational_const 1 / 2
|