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

11 lines
262 B
Solidity

contract C {
function f() public {
uint x;
uint y;
(true ? x : y) = 1;
}
}
// ----
// TypeError 2212: (80-92): Conditional expression as left value is not supported yet.
// TypeError 4247: (80-92): Expression has to be an lvalue.