aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/parsing/conditional_with_assignment.sol
blob: 7489aaf92f39876993b54e87bd19869d52290030 (plain) (blame)
1
2
3
4
5
6
7
8
contract A {
    function f() public pure {
        uint y = 1;
        uint x = 3 < 0 ? y = 3 : 6;
        true ? x = 3 : 4;
    }
}
// ----