mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
df08d79623
Remove unary + from the type system
10 lines
230 B
Solidity
10 lines
230 B
Solidity
contract test {
|
|
function f(uint x) pure public {
|
|
uint y = +x;
|
|
y;
|
|
}
|
|
}
|
|
// ----
|
|
// SyntaxError: (70-72): Use of unary + is disallowed.
|
|
// TypeError: (70-72): Unary operator + cannot be applied to type uint256
|