blob: edfbd59802ab5611d7cc6c109ed1366bd9fd12c8 [file] [edit]
40 columns |
>>> All relational operators.
switch (obj) {
case == other:
case != other:
case < other:
case <= other:
case > other:
case >= other:
body;
}
<<< 3.7
switch (obj) {
case == other:
case != other:
case < other:
case <= other:
case > other:
case >= other:
body;
}
>>> Relational pattern as subpattern.
if (o case > 1 && < 2 && ( == 3 )) {}
<<< 3.7
if (o case > 1 && < 2 && (== 3)) {}
>>> Split inside constant.
if (object case != veryLongConstant + expressionThatSplits) {;}
<<< 3.7
if (object
case != veryLongConstant +
expressionThatSplits) {
;
}