aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/parsing/tuples.sol
diff options
context:
space:
mode:
authorErik Kundt <bitshift@posteo.org>2018-06-29 20:55:44 +0800
committerErik Kundt <bitshift@posteo.org>2018-06-29 22:26:18 +0800
commitf3ca0685feb4b8d499914a3c1ff9432d4cef4b7e (patch)
tree4e28ae068e58badda1f684617d661990a2dec850 /test/libsolidity/syntaxTests/parsing/tuples.sol
parente289c36158701ba0b874051e9e426e270b0e38e2 (diff)
downloaddexon-solidity-f3ca0685feb4b8d499914a3c1ff9432d4cef4b7e.tar
dexon-solidity-f3ca0685feb4b8d499914a3c1ff9432d4cef4b7e.tar.gz
dexon-solidity-f3ca0685feb4b8d499914a3c1ff9432d4cef4b7e.tar.bz2
dexon-solidity-f3ca0685feb4b8d499914a3c1ff9432d4cef4b7e.tar.lz
dexon-solidity-f3ca0685feb4b8d499914a3c1ff9432d4cef4b7e.tar.xz
dexon-solidity-f3ca0685feb4b8d499914a3c1ff9432d4cef4b7e.tar.zst
dexon-solidity-f3ca0685feb4b8d499914a3c1ff9432d4cef4b7e.zip
Updates syntax tests to specify default visibility.
Diffstat (limited to 'test/libsolidity/syntaxTests/parsing/tuples.sol')
-rw-r--r--test/libsolidity/syntaxTests/parsing/tuples.sol15
1 files changed, 7 insertions, 8 deletions
diff --git a/test/libsolidity/syntaxTests/parsing/tuples.sol b/test/libsolidity/syntaxTests/parsing/tuples.sol
index d691da44..8266c94f 100644
--- a/test/libsolidity/syntaxTests/parsing/tuples.sol
+++ b/test/libsolidity/syntaxTests/parsing/tuples.sol
@@ -1,5 +1,5 @@
contract C {
- function f() {
+ function f() public {
uint a = (1);
(uint b,) = (1,);
(uint c, uint d) = (1, 2 + a);
@@ -8,10 +8,9 @@ contract C {
}
}
// ----
-// Warning: (47-63): Different number of components on the left hand side (2) than on the right hand side (1).
-// Warning: (100-121): Different number of components on the left hand side (2) than on the right hand side (3).
-// Warning: (14-136): No visibility specified. Defaulting to "public".
-// Warning: (68-74): Unused local variable.
-// Warning: (76-82): Unused local variable.
-// Warning: (101-107): Unused local variable.
-// Warning: (14-136): Function state mutability can be restricted to pure
+// Warning: (54-70): Different number of components on the left hand side (2) than on the right hand side (1).
+// Warning: (107-128): Different number of components on the left hand side (2) than on the right hand side (3).
+// Warning: (75-81): Unused local variable.
+// Warning: (83-89): Unused local variable.
+// Warning: (108-114): Unused local variable.
+// Warning: (14-143): Function state mutability can be restricted to pure