2018-05-30 16:41:34 +00:00
|
|
|
contract test {
|
|
|
|
function f(uint x) pure public {
|
|
|
|
uint y = +x;
|
|
|
|
y;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// ----
|
2020-06-19 00:26:46 +00:00
|
|
|
// SyntaxError 9636: (70-72): Use of unary + is disallowed.
|
|
|
|
// TypeError 4907: (70-72): Unary operator + cannot be applied to type uint256
|