Inline inner: rise conflict for recursive inlinement (IDEA-39353)

This commit is contained in:
anna
2010-02-01 17:13:32 +03:00
parent 3e37ba3466
commit 7a8e58a984
6 changed files with 96 additions and 4 deletions
@@ -0,0 +1,20 @@
public class SelfParams {
private int myVar = 0;
private int myProp = 0;
public int getProp() {
return myProp;
}
public void setProp(int prop) {
myProp = prop;
}
public void copy(SelfParams sp) {
this.myVar = sp.myVar;
this.myProp = sp.getProp();
}
}
class Usage {
SelfParams s = new Self<caret>Params();
}
@@ -0,0 +1,13 @@
public class Simple implements Runnable{
void foo(Simple s) {
System.out.println(s.toString());
s.run();
}
public void run(){
}
}
class Usage {
Simple s = new Sim<caret>ple();
}
@@ -0,0 +1,11 @@
class Usage {
Runnable s = new Runnable() {
void foo(Runnable s) {
System.out.println(s.toString());
s.run();
}
public void run(){
}
};
}