solidity/test/libsolidity/syntaxTests/types/empty_tuple_function.sol
Daniel Kirchner ad47fe23c1 Update tests.
2018-07-10 15:28:05 +02:00

13 lines
330 B
Solidity

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);
}
}
// ----
// TypeError: (162-165): Tuple component cannot be empty.
// TypeError: (181-184): Tuple component cannot be empty.