mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
[cond-expr] add another parser expression
This commit is contained in:
parent
9cd96222da
commit
985744545a
@ -1171,6 +1171,7 @@ BOOST_AUTO_TEST_CASE(conditional_with_assignment)
|
|||||||
function f() {
|
function f() {
|
||||||
uint y = 1;
|
uint y = 1;
|
||||||
uint x = 3 < 0 ? x = 3 : 6;
|
uint x = 3 < 0 ? x = 3 : 6;
|
||||||
|
true ? x = 3 : 4;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
)";
|
)";
|
||||||
|
Loading…
Reference in New Issue
Block a user