Fixed KT-5383 J2K: preserve annotations from primary constructor + never drop constructors with annotations
#KT-5383 Fixed
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
import javaApi.Anon5
|
||||
|
||||
|
||||
deprecated("") // this constructor will not be replaced by default parameter value in primary because of this annotation
|
||||
fun A(a: Int): A {
|
||||
return A(a, 1)
|
||||
}
|
||||
|
||||
class A
|
||||
[Anon5(10)]
|
||||
(private val a: Int, private val b: Int)
|
||||
|
||||
class B [Anon5(11)]
|
||||
()
|
||||
|
||||
class C [Anon5(12)]
|
||||
private()
|
||||
Reference in New Issue
Block a user