aboutsummaryrefslogblamecommitdiffstats
path: root/test/libsolidity/syntaxTests/nameAndTypeResolution/283_left_value_in_conditional_expression_not_supported_yet.sol
blob: ef8f99300d5c31eaf4cbf88539949e18e84a6b5c (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                                                                 
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.