Do not disable 'redundant visibility modifier' inspection completely in Explicit API mode.

Instead, disable it only for effectively public declarations.

Add tests for this IDE inspection.
This commit is contained in:
Leonid Startsev
2019-10-16 14:38:47 +03:00
parent 5ab262c977
commit 24688f3503
7 changed files with 121 additions and 1 deletions
@@ -1,3 +1,20 @@
private class Foo {
fun method() {}
}
public interface I {
public fun bar()
}
public fun f() {
val i = object : I {
internal var foo = 0
override fun bar() {}
}
i.foo = 1
class LocalClass {
internal var foo = 0
}
LocalClass().foo = 1
}