mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
12 lines
261 B
Solidity
12 lines
261 B
Solidity
pragma solidity ^0.4.3;
|
|
contract C {
|
|
function f() {}
|
|
function a() public {
|
|
bool x = true;
|
|
bool y = true;
|
|
(x) ? (f(), y = false) : (f(), y = false);
|
|
}
|
|
}
|
|
// ----
|
|
// TypeError: (144-147): Type of tuple component cannot be null.
|