solidity/test/libsolidity/syntaxTests/parsing/conditional_with_assignment.sol

9 lines
142 B
Solidity
Raw Normal View History

2018-05-17 07:04:39 +00:00
contract A {
2018-06-15 10:30:28 +00:00
function f() public pure {
2018-05-17 07:04:39 +00:00
uint y = 1;
2018-06-15 10:30:28 +00:00
uint x = 3 < 0 ? y = 3 : 6;
2018-05-17 07:04:39 +00:00
true ? x = 3 : 4;
}
}
// ----