Files
Tagir Valeev 1cd294e40d [java-highlighting] The rest of control-flow-related stuff (checkFinalVariableMightAlreadyHaveBeenAssignedTo) migrated
More utility methods inside ControlFlowUtil
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only)

GitOrigin-RevId: d4c294ce18da2032a0686f66794a7f377549edd2
2025-02-06 10:35:32 +00:00

45 lines
731 B
Java

// recusrsive ctr call
class s {
s() {
<error descr="Recursive constructor call">this()</error>;
}
s(int i) {
<error descr="Recursive constructor call">this(2)</error>;
}
}
class c {
c() {
this(2);
}
c(int i) {
<error descr="Recursive constructor call">this(1,1)</error>;
}
c(int i, int k) {
<error descr="Recursive constructor call">this(1)</error>;
}
}
class cv {
cv() {
this(1);
}
cv(int i) {
this(1,2);
}
cv(int i,int j) {}
}
class X {
private final int value;
X() {
<error descr="Recursive constructor call">this()</error>;
<error descr="Cannot assign final field 'value' after chained constructor call">value</error> = 1;
}
}