Effective visibility: local is now considered private, TYPE_DEPENDS_ON_LOCAL_CLASS diagnostics removed as repeated #KT-9542 Fixed #KT-9526 Fixed

This commit is contained in:
Mikhail Glukhikh
2015-10-14 11:25:58 +03:00
parent 3a902d6002
commit 9c9ab671b3
18 changed files with 205 additions and 117 deletions
+2 -2
View File
@@ -3,13 +3,13 @@ fun <T> run(f: () -> T): T {
}
// invalid, depends on local class
fun <!FUNCTION_RETURN_TYPE_DEPENDS_ON_LOCAL_CLASS!>foo<!>() = run {
fun <!EXPOSED_FUNCTION_RETURN_TYPE!>foo<!>() = run {
class A
A()
}
// invalid, depends on local class
fun <!FUNCTION_RETURN_TYPE_DEPENDS_ON_LOCAL_CLASS!>gav<!>() = {
fun <!EXPOSED_FUNCTION_RETURN_TYPE!>gav<!>() = {
class B
B()
}