Protected in allowed in companion objects but forbidden in other objects, relevant test fixes
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user