From 8ca69ed8d86efe8058cb1001ab4c2609dbe297da Mon Sep 17 00:00:00 2001 From: Christian Parpart Date: Tue, 3 Jul 2018 11:10:14 +0200 Subject: defaulting to v0.5.0 behaviour of unary + operator (disallow); also adapting all tests to it --- test/libsolidity/syntaxTests/parsing/unary_plus_expression.sol | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 test/libsolidity/syntaxTests/parsing/unary_plus_expression.sol (limited to 'test/libsolidity/syntaxTests/parsing') 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. -- cgit v1.2.3