mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
11 lines
252 B
Solidity
11 lines
252 B
Solidity
contract C {
|
|
function f() public {
|
|
uint x;
|
|
uint y;
|
|
(true ? x : y) = 1;
|
|
}
|
|
}
|
|
// ----
|
|
// TypeError: (80-92): Conditional expression as left value is not supported yet.
|
|
// TypeError: (80-92): Expression has to be an lvalue.
|