strict checking for internal visibility
This commit is contained in:
@@ -4,18 +4,18 @@ import shared.*
|
||||
|
||||
private fun privateInM2Test() {
|
||||
}
|
||||
fun internalInM2Test() {
|
||||
internal fun internalInM2Test() {
|
||||
}
|
||||
public fun publicInM2Test() {
|
||||
}
|
||||
|
||||
fun access() {
|
||||
<error descr="[INVISIBLE_MEMBER] Cannot access 'privateInM1': it is 'private' in 'shared'">privateInM1</error>()
|
||||
internalInM1()
|
||||
<error descr="[INVISIBLE_MEMBER] Cannot access 'internalInM1': it is 'internal' in 'shared'">internalInM1</error>()
|
||||
publicInM1()
|
||||
|
||||
<error descr="[INVISIBLE_MEMBER] Cannot access 'privateInM1Test': it is 'private' in 'test'">privateInM1Test</error>()
|
||||
internalInM1Test()
|
||||
<error descr="[INVISIBLE_MEMBER] Cannot access 'internalInM1Test': it is 'internal' in 'test'">internalInM1Test</error>()
|
||||
publicInM1Test()
|
||||
|
||||
<error descr="[INVISIBLE_MEMBER] Cannot access 'privateInM2': it is 'private' in 'shared'">privateInM2</error>()
|
||||
|
||||
Reference in New Issue
Block a user