solidity/test/libsolidity/syntaxTests/types/empty_tuple_function.sol

13 lines
330 B
Solidity
Raw Normal View History

pragma solidity ^0.4.3;
contract C {
function f() private pure {}
function a() public pure {
bool x = true;
bool y = true;
(x) ? (f(), y = false) : (f(), y = false);
}
}
// ----
2018-07-10 10:36:48 +00:00
// TypeError: (162-165): Tuple component cannot be empty.
// TypeError: (181-184): Tuple component cannot be empty.