mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
test: drop obsoleted syntaxTest(s)
This commit is contained in:
parent
4be9dc4304
commit
a083ccd457
@ -1,8 +0,0 @@
|
|||||||
contract C {
|
|
||||||
function f() internal returns (uint, uint, uint, uint) {
|
|
||||||
var (uint a, uint b,,) = f();
|
|
||||||
a; b;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// ----
|
|
||||||
// ParserError: (81-85): Expected identifier but got 'uint'
|
|
@ -1,11 +0,0 @@
|
|||||||
contract C {
|
|
||||||
function f() public { }
|
|
||||||
function g() public {
|
|
||||||
var (x,) = (f(), f());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// ----
|
|
||||||
// Warning: (80-81): Use of the "var" keyword is deprecated.
|
|
||||||
// Warning: (87-90): Tuple component cannot be empty.
|
|
||||||
// Warning: (92-95): Tuple component cannot be empty.
|
|
||||||
// TypeError: (80-81): Cannot declare variable with void (empty tuple) type.
|
|
Loading…
Reference in New Issue
Block a user