mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
14 lines
409 B
Solidity
14 lines
409 B
Solidity
pragma solidity ^0.4.3;
|
|
contract C {
|
|
function f() private pure {}
|
|
function a() public {
|
|
uint x;
|
|
uint y;
|
|
(x, y) = (f(), f());
|
|
}
|
|
}
|
|
// ----
|
|
// Warning: (146-149): Tuple component cannot be empty.
|
|
// Warning: (151-154): Tuple component cannot be empty.
|
|
// TypeError: (145-155): Type tuple(tuple(),tuple()) is not implicitly convertible to expected type tuple(uint256,uint256).
|