J2K - no '@' required for primary constructor annnotations

This commit is contained in:
Valentin Kipyatkov
2015-06-22 15:54:16 +03:00
parent 8e3c793760
commit 767e21db76
23 changed files with 39 additions and 23 deletions
@@ -1,7 +1,7 @@
import javaApi.Anon5
class A
@Anon5(10)
Anon5(10)
constructor(private val a: Int, private val b: Int) {
deprecated("") // this constructor will not be replaced by default parameter value in primary because of this annotation
@@ -9,8 +9,8 @@ constructor(private val a: Int, private val b: Int) {
}
}
class B @Anon5(11)
class B Anon5(11)
constructor()
class C @Anon5(12)
class C Anon5(12)
private constructor()