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,35 @@
import org.jetbrains.annotations.NotNull;
class J extends A {
@Override
public void foo(int n, @NotNull String s) {
}
@Override
public void bar(boolean b, int n, String s) {
foo(1, "abc"); // Propagated parameters are not passed to calles in overriding methods
}
@Override
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 J().foo(1, "abc");
new J().bar(true, 1, "abc");
new J().baz();
}
}