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

12 lines
316 B
Solidity

contract C {
function f() private pure {}
function a() public pure {
bool x = true;
bool y = true;
(x) ? (f(), y = false) : (f(), y = false);
}
}
// ----
// TypeError 6473: (138-141): Tuple component cannot be empty.
// TypeError 6473: (157-160): Tuple component cannot be empty.