solidity/test/libsolidity/syntaxTests/multiVariableDeclaration/multiVariableDeclarationEmpty.sol
Daniel Kirchner 62645d5302 Update tests.
2018-07-12 20:33:52 +02:00

12 lines
479 B
Solidity

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