Exposed visibility checking, a set of exposed visibility tests, some test fixes

Effective visibility mechanism introduced.
Local is considered as public, java protected as Kotlin protected, java package private as Kotlin private.
This commit is contained in:
Mikhail Glukhikh
2015-10-01 21:10:50 +03:00
committed by Mikhail Glukhikh
parent fa32aa2950
commit 0cc861f00b
73 changed files with 965 additions and 108 deletions
@@ -7,8 +7,8 @@ open class Foo {
}
class Bar: Foo() {
fun foo(): Nested? = null
protected fun foo(): Nested? = null
}
fun foo(): <!INVISIBLE_REFERENCE!>Nested<!>? = null
fun bar(): p.Foo.<!INVISIBLE_REFERENCE!>Nested<!>? = null
private fun foo(): <!INVISIBLE_REFERENCE!>Nested<!>? = null
private fun bar(): p.Foo.<!INVISIBLE_REFERENCE!>Nested<!>? = null