mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
New tests for wildcard assignments.
This commit is contained in:
committed by
Alex Beregszaszi
parent
43ec1699ba
commit
8ee5d3b274
@@ -0,0 +1,12 @@
|
||||
pragma experimental "v0.5.0";
|
||||
contract C {
|
||||
function f() public pure returns (uint, uint, bytes32) {
|
||||
uint a;
|
||||
bytes32 b;
|
||||
(a,) = f();
|
||||
(,b) = f();
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// TypeError: (126-136): Different number of components on the left hand side (2) than on the right hand side (3).
|
||||
// TypeError: (140-150): Different number of components on the left hand side (2) than on the right hand side (3).
|
||||
Reference in New Issue
Block a user