blob: 9618958e256269b8fa851a9dd988a533f3514cb4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
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).
|