Move visibility check for toplevel private declarations to Visibilities.PRIVATE and fix it.
This commit is contained in:
+19
@@ -0,0 +1,19 @@
|
||||
Cleaning output files:
|
||||
out/production/module/META-INF/module.kotlin_module
|
||||
out/production/module/test/TestPackage.class
|
||||
out/production/module/test/UsageKt.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/usage.kt
|
||||
End of files
|
||||
COMPILATION FAILED
|
||||
Cannot access 'foo': it is 'private' in file
|
||||
|
||||
|
||||
Cleaning output files:
|
||||
out/production/module/test/FooKt.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/foo.kt
|
||||
src/usage.kt
|
||||
End of files
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
package test
|
||||
|
||||
private fun foo() = 1
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
package test
|
||||
|
||||
fun usage() {
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
package test
|
||||
|
||||
fun usage() {
|
||||
println(foo())
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
package test
|
||||
|
||||
fun usage() {
|
||||
}
|
||||
Reference in New Issue
Block a user