private / internal / protected are forbidden in annotations

This commit is contained in:
Mikhail Glukhikh
2015-10-05 12:18:21 +03:00
committed by Mikhail Glukhikh
parent cba6870f52
commit c07f0e9602
4 changed files with 27 additions and 1 deletions
@@ -0,0 +1,6 @@
annotation class My(
public val x: Int,
<!WRONG_MODIFIER_CONTAINING_DECLARATION!>protected<!> val y: Int,
<!WRONG_MODIFIER_CONTAINING_DECLARATION!>internal<!> val z: Int,
<!WRONG_MODIFIER_CONTAINING_DECLARATION!>private<!> val w: Int
)