aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/parsing/unary_plus_expression.sol
diff options
context:
space:
mode:
authorChristian Parpart <christian@ethereum.org>2018-07-03 17:10:14 +0800
committerchriseth <chris@ethereum.org>2018-07-10 22:27:57 +0800
commit8ca69ed8d86efe8058cb1001ab4c2609dbe297da (patch)
treefcc864ba5d5787c2a1295a626f89c04df5219ad3 /test/libsolidity/syntaxTests/parsing/unary_plus_expression.sol
parent4547b3234893a9f3949130a4e12d86be3b1c0de0 (diff)
downloaddexon-solidity-8ca69ed8d86efe8058cb1001ab4c2609dbe297da.tar.gz
dexon-solidity-8ca69ed8d86efe8058cb1001ab4c2609dbe297da.tar.zst
dexon-solidity-8ca69ed8d86efe8058cb1001ab4c2609dbe297da.zip
defaulting to v0.5.0 behaviour of unary + operator (disallow); also adapting all tests to it
Diffstat (limited to 'test/libsolidity/syntaxTests/parsing/unary_plus_expression.sol')
-rw-r--r--test/libsolidity/syntaxTests/parsing/unary_plus_expression.sol8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/libsolidity/syntaxTests/parsing/unary_plus_expression.sol b/test/libsolidity/syntaxTests/parsing/unary_plus_expression.sol
new file mode 100644
index 00000000..5646c43b
--- /dev/null
+++ b/test/libsolidity/syntaxTests/parsing/unary_plus_expression.sol
@@ -0,0 +1,8 @@
+contract test {
+ function f(uint x) pure public {
+ uint y = +x;
+ y;
+ }
+}
+// ----
+// SyntaxError: (70-72): Use of unary + is disallowed.