Change Signature: Propagate parameters to chosen callers

#KT-7902 Fixed
This commit is contained in:
Alexey Sedunov
2015-07-03 18:31:03 +03:00
parent 9853934087
commit eb7463ed81
46 changed files with 1334 additions and 102 deletions
@@ -0,0 +1,45 @@
class A {
public void foo(int n, String s) {
}
public void bar(boolean b, int n, String s) {
foo(n, s);
}
public void baz() {
foo(1, "abc");
bar(false, 1, "abc");
}
}
class B extends A {
public void foo(int n, String s) {
}
public void bar(boolean b, int n, String s) {
foo(1, "abc");
}
public void baz() {
foo(1, "abc");
bar(false, 1, "abc");
}
}
class Test {
void test() {
new A().foo(1, "abc");
new A().bar(true, 1, "abc");
new A().baz();
new B().foo(1, "abc");
new B().bar(true, 1, "abc");
new B().baz();
new C().foo(1, "abc");
new C().bar(true, 1, "abc");
new C().baz();
}
}