construction of generic class conflicts with "less than" operator in if condition
Closed this issue · 4 comments
felixhao28 commented
Description
class A {
void f() {
int X = 5;
if (X < 100)
isTokenPerNode = false;
for (int A : list) {
// ...
}
if (new HashSet<String>().size() < 100)
isTokenPerNode = false;
for (int A : list) {
// ...
}
}
}
If the condition contains a generic type, the comparator "<" won't be parsed correctly. And it also breaks the rest of the file.
Version:
7c3d0d3
felixhao28 commented
OK. Feel free to close it if it's duplicate.
Vigilans commented
sadikovi commented
I double checked that this issue has been fixed in master.