Fixed KT-5383 J2K: preserve annotations from primary constructor + never drop constructors with annotations

#KT-5383 Fixed
This commit is contained in:
Valentin Kipyatkov
2014-07-11 14:25:42 +04:00
parent 3527b186bf
commit bcc36c4e48
6 changed files with 65 additions and 7 deletions
@@ -0,0 +1,29 @@
import javaApi.Anon5;
class A {
private final int a;
private final int b;
@Anon5(10)
public A(int a, int b) {
this.a = a;
this.b = b;
}
@Deprecated // this constructor will not be replaced by default parameter value in primary because of this annotation
public A(int a) {
this(a, 1);
}
}
class B {
@Anon5(11)
public B() {
}
}
class C {
@Anon5(12)
private C() {
}
}