solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/308_rational_unary_plus_operation.sol

10 lines
196 B
Solidity

contract test {
function f() pure public {
ufixed16x2 a = +3.25;
fixed16x2 b = -3.25;
a; b;
}
}
// ----
// SyntaxError 9636: (70-75): Use of unary + is disallowed.