Protected in allowed in companion objects but forbidden in other objects, relevant test fixes
This commit is contained in:
+1
-1
@@ -4,7 +4,7 @@ package test
|
||||
const private val topLevel = 1
|
||||
|
||||
object A {
|
||||
const protected val inObject = 2
|
||||
const internal val inObject = 2
|
||||
}
|
||||
|
||||
class B {
|
||||
|
||||
@@ -5,8 +5,8 @@ private const val topLevel: kotlin.Int = 1
|
||||
|
||||
public object A {
|
||||
/*primary*/ private constructor A()
|
||||
protected const final val inObject: kotlin.Int = 2
|
||||
protected final fun <get-inObject>(): kotlin.Int
|
||||
internal const final val inObject: kotlin.Int = 2
|
||||
internal final fun <get-inObject>(): kotlin.Int
|
||||
}
|
||||
|
||||
public final class B {
|
||||
|
||||
Reference in New Issue
Block a user