change parameter class: allow for constructor calls (IDEA-64657); for variable assignments (IDEA-71592 )

This commit is contained in:
anna
2011-08-22 20:12:09 +02:00
parent 1615e8f030
commit 40dd8914ae
7 changed files with 49 additions and 2 deletions

View File

@@ -0,0 +1,9 @@
// "Make 'A' extend 'B'" "true"
class B {}
class A extends B {
A(B b) {
}
A a = new A(this);
}

View File

@@ -0,0 +1,9 @@
// "Make 'A' extend 'B'" "true"
class B {}
class A extends B {
int foo(B b) {
B bz = this;
return 1;
}
}

View File

@@ -0,0 +1,9 @@
// "Make 'A' extend 'B'" "true"
class B {}
class A {
A(B b) {
}
A a = new A(th<caret>is);
}

View File

@@ -0,0 +1,9 @@
// "Make 'A' extend 'B'" "true"
class B {}
class A {
int foo(B b) {
B bz = t<caret>his;
return 1;
}
}