FE: fix visibility check in LazyImportScope #KT-23727 Fixed

This commit is contained in:
Mikhail Glukhikh
2021-11-25 12:14:32 +03:00
parent 4550999288
commit c15c7f7dc8
9 changed files with 72 additions and 1 deletions
@@ -0,0 +1,25 @@
// TARGET_BACKEND: JVM
// !LANGUAGE: +ProperInternalVisibilityCheckInImportingScope
// See also: KT-23727
// WITH_STDLIB
// MODULE: m1
// FILE: Foo.kt
package foo
internal annotation class Volatile
// MODULE: m2(m1)
// FILE: Bar.kt
import foo.*
class Bar {
@Volatile
var v = 0
}
fun box(): String {
val bar = Bar()
return if (bar.v == 0) "OK" else "FAIL: ${bar.v}"
}