strict checking for internal visibility
This commit is contained in:
+1
-1
@@ -4,7 +4,7 @@ import shared.<error descr="[UNRESOLVED_REFERENCE] Unresolved reference: test">t
|
||||
|
||||
private fun privateInM1() {
|
||||
}
|
||||
fun internalInM1() {
|
||||
internal fun internalInM1() {
|
||||
}
|
||||
public fun publicInM1() {
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@ import shared.*
|
||||
|
||||
private fun privateInM1Test() {
|
||||
}
|
||||
fun internalInM1Test() {
|
||||
internal fun internalInM1Test() {
|
||||
}
|
||||
public fun publicInM1Test() {
|
||||
}
|
||||
|
||||
+2
-2
@@ -4,14 +4,14 @@ import shared.<error descr="[UNRESOLVED_REFERENCE] Unresolved reference: test">t
|
||||
|
||||
private fun privateInM2() {
|
||||
}
|
||||
fun internalInM2() {
|
||||
internal fun internalInM2() {
|
||||
}
|
||||
public fun publicInM2() {
|
||||
}
|
||||
|
||||
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="[UNRESOLVED_REFERENCE] Unresolved reference: privateInM1Test">privateInM1Test</error>()
|
||||
|
||||
@@ -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>()
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ import shared.<error descr="[UNRESOLVED_REFERENCE] Unresolved reference: test">t
|
||||
|
||||
private fun privateInM3() {
|
||||
}
|
||||
fun internalInM3() {
|
||||
internal fun internalInM3() {
|
||||
}
|
||||
public fun publicInM3() {
|
||||
}
|
||||
|
||||
@@ -4,26 +4,26 @@ import shared.*
|
||||
|
||||
private fun privateInM3Test() {
|
||||
}
|
||||
fun internalInM3Test() {
|
||||
internal fun internalInM3Test() {
|
||||
}
|
||||
public fun publicInM3Test() {
|
||||
}
|
||||
|
||||
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>()
|
||||
internalInM2()
|
||||
<error descr="[INVISIBLE_MEMBER] Cannot access 'internalInM2': it is 'internal' in 'shared'">internalInM2</error>()
|
||||
publicInM2()
|
||||
|
||||
<error descr="[INVISIBLE_MEMBER] Cannot access 'privateInM2Test': it is 'private' in 'test'">privateInM2Test</error>()
|
||||
internalInM2Test()
|
||||
<error descr="[INVISIBLE_MEMBER] Cannot access 'internalInM2Test': it is 'internal' in 'test'">internalInM2Test</error>()
|
||||
publicInM2Test()
|
||||
|
||||
<error descr="[INVISIBLE_MEMBER] Cannot access 'privateInM3': it is 'private' in 'shared'">privateInM3</error>()
|
||||
|
||||
Reference in New Issue
Block a user