Protected in allowed in companion objects but forbidden in other objects, relevant test fixes

This commit is contained in:
Mikhail Glukhikh
2015-11-20 15:34:56 +03:00
parent fdc7c75f5b
commit f81a5c06ea
9 changed files with 19 additions and 17 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ class My(protected val x: Int) {
}
object Your {
<!DEPRECATED_MODIFIER_CONTAINING_DECLARATION!>protected<!> fun foo() = 3
<!WRONG_MODIFIER_CONTAINING_DECLARATION!>protected<!> fun foo() = 3
}
annotation class His(<!WRONG_MODIFIER_CONTAINING_DECLARATION!>protected<!> val x: Int)
@@ -5,7 +5,7 @@ open class A {
val internal_val = 1
public val public_val: Int = 2
private val private_val = 3
<!DEPRECATED_MODIFIER_CONTAINING_DECLARATION!>protected<!> val protected_val: Int = 5
protected val protected_val: Int = 5
}
fun fromClass() {