Can be private: don't report when object or subclass calls the function

Questionable
So #KT-22030 Fixed
This commit is contained in:
Toshiaki Kameyama
2018-06-01 07:58:12 +03:00
committed by Mikhail Glukhikh
parent 6c8276b701
commit 7786896e9b
4 changed files with 53 additions and 13 deletions
@@ -0,0 +1,10 @@
// PROBLEM: none
open class A {
<caret>internal fun foo() {}
fun bar(c: C) {
c.foo()
}
}
class C : A()
@@ -0,0 +1,10 @@
// PROBLEM: none
open class A {
<caret>internal fun foo() {}
fun bar() {
O.foo()
}
}
object O : A()