protected is deprecated inside objects and forbidden inside annotations and enum entries

This commit is contained in:
Mikhail Glukhikh
2015-10-05 11:43:57 +03:00
committed by Mikhail Glukhikh
parent 407d46baad
commit 846d7cac69
6 changed files with 98 additions and 4 deletions
@@ -5,7 +5,7 @@ open class A {
val internal_val = 1
public val public_val: Int = 2
private val private_val = 3
protected val protected_val: Int = 5
<!DEPRECATED_MODIFIER_CONTAINING_DECLARATION!>protected<!> val protected_val: Int = 5
}
fun fromClass() {