aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/tupleAssignments
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-06-26 18:07:19 +0800
committerGitHub <noreply@github.com>2018-06-26 18:07:19 +0800
commit24f124f84963c5f6315eab7b3d96c116a36faf30 (patch)
treed6f2fe45fce21ba5980cf4a63e84701ebf9f37d8 /test/libsolidity/syntaxTests/tupleAssignments
parent4be9dc430452ca73ffb07f987f27fb6ccf4ac848 (diff)
parente38139c800a780ee6d7aeb55af86aea16a08a907 (diff)
downloaddexon-solidity-24f124f84963c5f6315eab7b3d96c116a36faf30.tar
dexon-solidity-24f124f84963c5f6315eab7b3d96c116a36faf30.tar.gz
dexon-solidity-24f124f84963c5f6315eab7b3d96c116a36faf30.tar.bz2
dexon-solidity-24f124f84963c5f6315eab7b3d96c116a36faf30.tar.lz
dexon-solidity-24f124f84963c5f6315eab7b3d96c116a36faf30.tar.xz
dexon-solidity-24f124f84963c5f6315eab7b3d96c116a36faf30.tar.zst
dexon-solidity-24f124f84963c5f6315eab7b3d96c116a36faf30.zip
Merge pull request #4331 from ethereum/v050-var-keyword-preparations-soltests
Adapt soltest suite to use explicit types over "var" keyword
Diffstat (limited to 'test/libsolidity/syntaxTests/tupleAssignments')
-rw-r--r--test/libsolidity/syntaxTests/tupleAssignments/warn_fill_vardecl.sol7
1 files changed, 2 insertions, 5 deletions
diff --git a/test/libsolidity/syntaxTests/tupleAssignments/warn_fill_vardecl.sol b/test/libsolidity/syntaxTests/tupleAssignments/warn_fill_vardecl.sol
index 1d243c7c..23484567 100644
--- a/test/libsolidity/syntaxTests/tupleAssignments/warn_fill_vardecl.sol
+++ b/test/libsolidity/syntaxTests/tupleAssignments/warn_fill_vardecl.sol
@@ -1,11 +1,8 @@
contract C {
function f() public pure returns (uint, uint, uint, uint) {
- // Can later be replaced by (uint a, uint b,) = f();
- var (a,b,) = f();
+ (uint a, uint b,) = f();
a; b;
}
}
// ----
-// Warning: (136-137): Use of the "var" keyword is deprecated.
-// Warning: (138-139): Use of the "var" keyword is deprecated.
-// Warning: (131-147): Different number of components on the left hand side (3) than on the right hand side (4).
+// Warning: (76-99): Different number of components on the left hand side (3) than on the right hand side (4).