d6bd4535fa
Checks that analysis produces expected diagnostics when configured by real IDEA module
34 lines
1.0 KiB
Kotlin
34 lines
1.0 KiB
Kotlin
package m2
|
|
|
|
import m1.*
|
|
|
|
fun testVisibility() {
|
|
PublicClassInM1()
|
|
|
|
<error descr="[INVISIBLE_MEMBER] Cannot access 'InternalClassInM1': it is 'internal' in 'm1'">InternalClassInM1</error>()
|
|
|
|
<error descr="[INVISIBLE_MEMBER] Cannot access 'PrivateClassInM1': it is 'private' in 'm1'">PrivateClassInM1</error>()
|
|
|
|
publicFunInM1()
|
|
|
|
<error descr="[INVISIBLE_MEMBER] Cannot access 'internalFunInM1': it is 'internal' in 'm1'">internalFunInM1</error>()
|
|
|
|
<error descr="[INVISIBLE_MEMBER] Cannot access 'privateFunInM1': it is 'private' in 'm1'">privateFunInM1</error>()
|
|
}
|
|
|
|
public class ClassInM2
|
|
|
|
public class B: <error descr="[INVISIBLE_MEMBER] Cannot access '<init>': it is 'internal' in 'A'">A</error>() {
|
|
|
|
fun accessA(<warning>a</warning>: A) {}
|
|
|
|
fun f() {
|
|
<error descr="[INVISIBLE_MEMBER] Cannot access 'pri': it is 'invisible_fake' in 'B'">pri</error>()
|
|
|
|
pro()
|
|
|
|
pub()
|
|
|
|
<error descr="[INVISIBLE_MEMBER] Cannot access 'int': it is 'invisible_fake' in 'B'">int</error>()
|
|
}
|
|
} |