solidity/test/libsolidity/syntaxTests/types/unnamed_tuple_decl.sol

15 lines
348 B
Solidity
Raw Normal View History

contract C {
function f() internal pure {}
function g() internal pure returns (uint) { return 1; }
function h() internal pure returns (uint, uint) { return (1, 2); }
function test() internal pure {
2020-07-15 17:50:59 +00:00
() = f();
() = g();
(,) = h();
}
}
// ----
2020-07-15 17:50:59 +00:00
// ParserError 6933: (224-225): Expected primary expression.