solidity/test/libsolidity/syntaxTests/multiVariableDeclaration/multiVariableDeclarationEmpty.sol
2022-04-01 23:41:18 -05:00

12 lines
551 B
Solidity

contract C {
function f() public pure {
(uint a, uint b) = f();
(uint c) = f();
uint d = f();
}
}
// ----
// TypeError 7364: (52-74='(uint a, uint b) = f()'): Different number of components on the left hand side (2) than on the right hand side (0).
// TypeError 7364: (84-98='(uint c) = f()'): Different number of components on the left hand side (1) than on the right hand side (0).
// TypeError 7364: (108-120='uint d = f()'): Different number of components on the left hand side (1) than on the right hand side (0).