Fix "Cannot infer visibility" for fake overrides

#KT-4785 Fixed
This commit is contained in:
Alexander Udalov
2014-03-31 22:49:27 +04:00
parent 55b28fcd0e
commit 5ae339d940
5 changed files with 51 additions and 7 deletions
@@ -0,0 +1,11 @@
trait T {
internal fun foo()
}
open class C {
protected fun foo() {}
}
class <!CANNOT_INFER_VISIBILITY!>E<!> : C(), T
val z: T = <!CANNOT_INFER_VISIBILITY!>object<!> : C(), T {}
@@ -0,0 +1,13 @@
trait A {
internal fun foo()
}
trait B {
protected fun foo() {}
}
class C {
class <!CANNOT_INFER_VISIBILITY!>object<!> : A, B {
fun bar() = null
}
}