solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/283_left_value_in_conditional_expression_not_supported_yet.sol

11 lines
252 B
Solidity
Raw Normal View History

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.